Azxa
← Sonic overview

Sonic · 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-sonic-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-sonic-node.azxa.io \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_accounts","params":[]}'
1

Select Chain

2

Desired Period

3

Contact Information

cross

Select Preferred Chain

BNB Smart Chain
Polygon
Tron
Arbitrum
Optimism
IoTeX
Gnosis
Fantom
Moonbeam
Polkadot
Avalanche
Bitcoin
Ethereum
Aptos
Other
cube

Other Chain

Continue
logo
cross
background