💎 Ethereum
eth_accounts

eth_accounts RPC Method

⚠️

Note: This method has been deprecated and will always return an empty array [] as the result. This is because exposing the client's account addresses to the public API can be a security risk.

Description

The eth_accounts method returns a list of addresses owned by the client. These addresses can be used to send transactions and messages from the client.

Parameters

None.

Need RPC API keys?

Get 12.5M archival requests for free today.

Returns

An array of addresses owned by the client.

Request

POST https://<network>.chainnodes.org/YOUR-API-KEY

Example

  • HTTPS POST Request with a JSON RPC call in the body
  • Replace YOUR-API-KEY with the API key from your Chainnodes.org Dashboard
  • You can use a different supported network by replacing mainnet
curl https://mainnet.chainnodes.org/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}'

Body

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