eth_accounts
Returns the addresses of the accounts the node holds keys for.
Ethereum specification · All supported methods
Parameters
No parameters. Send an empty params array.
Return value
An array of 20-byte addresses. Most nodes serving RPC hold no accounts and return an empty array.
Example
Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.
sh
curl -X POST "<gateway-url>/<service-url>" \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"eth_accounts","params":[]}'Illustrative response; values depend on the selected network and request:
json
{
"jsonrpc": "2.0",
"id": 1,
"result": []
}