Skip to content

eth_accounts


Returns a list of addresses for the accounts owned by this client. Not applicable in Zilliqa 2.0 and thus returns the empty list.

Example Request

curl -d '{
    "id": "1",
    "jsonrpc": "2.0",
    "method": "eth_accounts"
}' -H "Content-Type: application/json" -X POST "https://api.zq2-prototestnet.zilliqa.com/"

Example response

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

Arguments

Parameter Type Required Description
id string Required "1"
jsonrpc string Required "2.0"
method string Required "eth_accounts"
params empty Optional [] if present