⚡ We welcome businesses to test our enterprise-grade service

Method: POST eth_accounts

dropdown

Method RPC eth_accounts example for Ethereum (ETH)

POST eth_accounts

Returns a list of account addresses a client owns.

Parameters

-

Request

curl --location --request POST 'https://eth.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "eth_accounts",
"params": [],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": []
}