eth_accounts - Mantle

eth_accounts. Retrieve a list of accounts

eth_accounts - mantle [Value: 0CU]
Returns an account addresses owned by the client
Use cases

Use cases

  • Retrieve a list of managed accounts
  • Verify available accounts on the connected node
  • Populate account dropdown menus
Constraints

Constraints

  • Requires node with account management capability
  • Risk of exposing addresses
  • Depends on node's current account configuration
Get started
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://mantle.drpc.org \
    --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --data '
{
 "id": 1,
 "jsonrpc": "2.0",
 "method": "eth_accounts"
}
'
Copy
Response
200
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": []
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.

Response

200

Response params

object
idinteger
jsonrpcstring
resultarray_of_strings
An array of account addresses, each address is represented as a string.