eth_accounts

The eth_accounts method returns a list of addresses owned by the client. In most modern setups, this method returns an empty array as private keys are not stored on the node for security reasons.


Historically, this method was used by applications to get available accounts from the node, but modern best practices dictate that wallets manage keys separately and use eth_sendRawTransaction for better security. In development environments or private nodes where account management is enabled, this method can return the list of available accounts. However, for production nodes and public RPC endpoints, this will almost always return an empty array to prevent exposure of sensitive account information.

Parameters

This method does not require any parameters.

Return Object
field
type
description
result
array
An array of addresses owned by the client
Request Example
Request
Response Example
Response

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?