> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Request Addresses \[wallet.requestAddresses]

Requests a list of accounts managed by a wallet.

Sends a request to the wallet asking for permission to access the user's accounts via `eth_requestAccounts`. After the user accepts, it returns a list of account addresses.

## Usage

This example requests a list of accounts managed by a wallet.

:::code-group
```ts twoslash [example.ts]
import { client } from './viem.config'

const addresses = await client.wallet.requestAddresses()
```

```ts twoslash [viem.config.ts] filename="viem.config.ts"
import { Client, custom, walletActions } from 'viem'
import 'viem/window'

export const client = Client.create({
  transport: custom(window.ethereum!),
}).extend(walletActions())
```
:::

### Standalone Action

Call `Actions.wallet.requestAddresses` directly by passing the Client as the first argument.

:::code-group
```ts twoslash [example.ts]
import { Actions } from 'viem'
import { client } from './viem.config'

const addresses = await Actions.wallet.requestAddresses(client)
```

```ts twoslash [viem.config.ts] filename="viem.config.ts"
import { Client, custom } from 'viem'
import 'viem/window'

export const client = Client.create({
  transport: custom(window.ethereum!),
})
```
:::

## Return Value

`readonly Address[]`

The list of accounts managed by the wallet.
