eth_accounts - Ethereum

eth_accounts. Returns a list of addresses owned by client

eth_accounts - ethereum [Value: 0CU]
Returns a list of addresses owned by client.
Use cases

Use cases

  • Retrieve a list of managed Ethereum accounts
  • Verify available accounts on the connected node
  • Populate account dropdown menus
Constraints

Constraints

  • Requires node with account management capability
  • Risk of exposing addresses
  • Depends on node's current account configuration
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
    --url https://eth.drpc.org \
    --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --data '
{
 "id": 1,
 "jsonrpc": "2.0",
 "method": "eth_accounts"
}
'
Copy
Response
200
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": []
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.

Response

200

Response params

object
idinteger
jsonrpcstring
resultarray_of_strings
An array of addresses owned by the client