eth_accounts | Base

🚧

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.

Try the eth_accounts RPC method yourself

Language
Click Try It! to start a request and see the response here!