> For the complete documentation index, see [llms.txt](https://instadapp-3.gitbook.io/instadapp-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://instadapp-3.gitbook.io/instadapp-docs/dsa-sdk/resolvers/accounts.md).

# Accounts

Resolver for Accounts

## Get Accounts

Get all accounts for addresses owned by address.Copy

```
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.Copy

```
[
  {
      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.Copy

```
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.Copy

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

## Get Auth by ID

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

```
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.Copy

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

## Get Count

Get global number of DSAs.Copy

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

## Returns

`Number` of DSA accounts created globally.
