POST
/
2fc1de7f08c0465f6a28e3c355e0cb14
curl --request POST \
  --url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_accounts",
  "id": 1
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": [
    "<string>"
  ]
}

Deprecated

Note that this method is deprecated. This example is for historical reference.

Base API method that returns a list of addresses owned by the client. For most nodes, this will return an empty array unless the node is running with unlocked accounts.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • none

Response

  • result — an array of 20-byte account addresses owned by the client. For most public nodes, this array will be empty as accounts are not stored on the node for security reasons.

Use case

The eth_accounts method is primarily used in development environments or private networks where accounts are stored locally on the node. In production environments with public nodes, this method typically returns an empty array as accounts should be managed client-side for security reasons.

Body

application/json

Response

200 - application/json
List of addresses owned by the client

The response is of type object.