๐ Get ETH balance for address
Code samples
GET /api/v1/eth/account/{address}/balance
Returns the balance of an account at a given address using eth_getBalance.
๐ ๏ธ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| address | path | string | true | Ethereum address (0x-prefixed). |
| block | query | string | false | Block number as hex QUANTITY, or tag (latest, earliest, pending). |
Example responses
200 Response
{
"address": 9.743344248872686e+46,
"block": "latest",
"balance": "0x2386f26fc10000"
}
๐ Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | ETH balance information | Inline |
| 500 | Internal Server Error | Could not connect to ETH node | None |
๐ Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป address | string | false | none | none |
| ยป block | string | false | none | none |
| ยป balance | string | false | none | Balance in wei as hex QUANTITY from eth_getBalance. |