Eth
eth_accounts
Returns a list of addresses owned by the client.
Note: Public RPC endpoints will return an empty array as they don't manage any accounts. This method only returns accounts when using a node you control with unlocked accounts.
JSON-RPC request
jsonrpcstring
methodstring
paramsarray<unknown>
idinteger
Response Body
application/json
application/json
curl -X POST "https://api.avax.network/ext/bc/C/rpc#eth_accounts" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1 }'{
"jsonrpc": "2.0",
"result": null,
"error": {
"code": 0,
"message": "string",
"data": null
},
"id": 1
}{
"jsonrpc": "2.0",
"error": {
"code": 0,
"message": "string",
"data": null
},
"id": 1
}Is this guide helpful?