Skip to main content

eth_accounts

Returns a list of addresses owned by the client.

Parameters

None

Returns

An array of hexadecimals as strings representing the addresses owned by the client.

Example

Replace https://dataseed-testnet.helioschain.network with your node rpc url.

Request curl

curl https://dataseed-testnet.helioschain.network \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}'

JSON Response

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