JSON-RPCMethods
eth_getBalance: parameters, returns and CU
Return the balance of an address at a given block, in wei.
Summary
Return the balance of an address at a given block, in wei.
Compute units (CU) and pricing
CU per call
10 CU
Price per 1M calls (USD)
$1.00
Parameters
| Parameter | Type | Description |
|---|---|---|
address | ADDRESS | Account address to query. |
blockParameter | QUANTITY|TAG | Block number or tag: latest or pending; safe, finalized and earliest return -32011 (not billed). |
Returns
- Type:
QUANTITY - Description: Account balance as a 0x-prefixed hexadecimal quantity in wei.
Notes
The balance depends on the chosen block tag: pending reflects the pending state.
Request example
export BLOCKVECTRA_API_KEY=rgw_your_api_key
curl -X POST "https://api.blockvectra.com/v1/robinhood_mainnet" \
-H 'Content-Type: application/json' \
-H "x-api-key: $BLOCKVECTRA_API_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [
"0x0000000000000000000000000000000000000000",
"latest"
],
"id": 1
}'Supported chains
Available on all 29 supported chains.
Related references
Last updated: