eth_accounts method

Returns the list of accounts owned by a client

Parameters

none

Returns

Array of DATA, 20 Bytes - addresses owned by the client.

Example

// Request

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "eth_accounts","params": []}' https://bsc-api.bwarelabs.com/<your-endpoint-id>

// Response

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

Last updated