← Celo overview
Celo · eth
eth_accounts
Returns a list of addresses owned by client.
Result
Accounts
Schema
{
"type": "array",
"title": "Accounts",
"items": {
"type": "string",
"title": "hex encoded address",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
}Example request
Endpoint: https://your-celo-node.azxa.io
JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_accounts",
"params": []
}Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0xd1f5279be4b4dd94133a23dee1b23f5bfc0db1d0"
]
}cURL
curl -X POST https://your-celo-node.azxa.io \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_accounts","params":[]}'