> For the complete documentation index, see [llms.txt](https://tutorial.neoline.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorial.neoline.io/reference/neo3-provider-api/getaccounts.md).

# getAccounts

Returns the accounts currently connected to the dapp.

## Parameters

None.

## Returns

`Promise<Account[]>`

```ts
type Account = {
  hash: UInt160;
  address: Address;
  label?: string;
  contract?: {
    script?: Base64Encoded;
    parameters: Parameter[];
    deployed: boolean;
  };
  extra?: any;
};
```

## Errors

This method follows the standard NEP-21 error object shape.

## Example

### Request

```js
const accounts = await provider.getAccounts();
```

### Response

```js
[
  {
    address: 'NLtYAu3z1fmSqisfAhfNpX81BKZ5ZrSpH5',
    label: 'test2',
    hash: '9a7c5085dcdd4adf9ec12f2d1a7d6b741ad4b20a',
    extra: {
      isLedger: false
    }
  }
]
```
