Accounts

Accounts Resolver

Get Accounts

Get all accounts for addresses owned by address.

dsa.getAccounts(authority) // an ethereum address
  .then(data => {
    return data
  })
  .catch(error => {
    return error
  })

Returns

Array of Object with all the DSA where address is authorised.

[
  {
      id: 52, // DSA ID
      address: "0x...", // DSA Address
      version: 1 // DSA version
  },
  ...
]

Get Auth by Address

Get all the authorised address(es) of a DSA by address.

dsa.getAuthByAddress(address) // an ethereum address
  .then(data => {
    return data
  })
  .catch(error => {
    return error
  })

Returns

Array of address(es) authorised to make calls to the DSA.

[
  "0x...",
  "0x...",
  "0x...",
  ...
]

Get Auth by ID

Get all the authorised address(es) of a DSA by ID.

dsa.getAuthById(dsaID) // the DSA ID
  .then(data => {
    return data
  })
  .catch(error => {
    return error
  })

Returns

Array of address(es) authorised to make calls to the DSA.

[
  "0x...",
  "0x...",
  "0x...",
  ...
]

Get Count

Get global number of DSAs.

dsa.count()
  .then(data => {
    return data
  })
  .catch(error => {
    return error
  })

Returns

Number of DSA accounts created globally.


If you still can't find something you're looking for or have any questions, ask them at our developers community on Telegram, Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.

Best way to stay connected with our progress.