For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

eth_accounts

Returns a list of addresses that the user has authorized the dapp to access. This method requires calling wallet_requestPermissions for permission. We recommend using eth_requestAccounts, which internally calls wallet_requestPermission.

Parameters

This method doesn't accept any parameters.

Returns

An array of Ethereum addresses that the user has authorized the dapp to access.

Example request
await provider.request({
method: 'eth_accounts',
params: [],
})
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": ["0xa77392123a1085f75e62eec7dea7e0e1e5142d5f"]
}