eth_accounts - Celo
eth_accounts. Returns a list of addresses owned by the client
eth_accounts - celo [Value: 0CU]
Returns an account addresses owned by the client
Use cases
- Retrieve a list of managed accounts
- Verify available accounts on the connected node
- Populate account dropdown menus
Constraints
- Requires node with account management capability
- Risk of exposing addresses
- Depends on node's current account configuration
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
--url https://celo.drpc.org \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_accounts"
}
'
Response
200
{
"jsonrpc": "2.0",
"id": 1,
"result": []
}
Request params
idinteger
jsonrpcstring
methodstring
Response
200
Response params
object
idinteger
jsonrpcstring
resultarray_of_strings
An array of account addresses, each address is represented as a string.