Pre-alphaWork in progress
Skip to content

personal_listAccounts ​

Returns the addresses of the accounts in the node’s keystore.

Geth reference · All supported methods

Parameters ​

No parameters. Send an empty params array.

Return value ​

An array of 20-byte addresses.

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":"personal_listAccounts","params":[]}'

Illustrative response; values depend on the selected network and request:

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f"]
}

Unstoppable Infrastructure.