eth_accounts

Returns a list of addresses owned by the client.

Request

curl https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "eth_accounts", "params": []}'

Response

The result is a hex array representing the owned address.

{
  "id": 1,
  "jsonrpc": "2.0",
  "result": []
}

Although SolarPath supports this JSON-RPC method, it does not return any account addresses. Instead, you should use eth_sendRawTransaction to send signed raw transactions.

Last updated