Skip to main content

/eth/v1/beacon/states/{state_id}/validator_balances RPC Method

Returns a filterable list of validators balances.

Updated on
Oct 4, 2023

/eth/v1/beacon/states/{state_id}/validator_balances RPC Method

Parameters

state_id
string
REQUIRED
The state identifier. It can be one of: head (canonical head in node's view), genesis, finalized, justified, slot and stateRoot (hex encoded stateRoot with 0x prefix)
id
array
Either hex encoded public key (any bytes48 with 0x prefix) or validator index

Returns

execution_optimistic
boolean
It's true if the response references an unverified execution payload. The optimistic information may be invalidated at a later time. If the field is not present, assume the false value
data
The object with the following values:
index
string
The index of validator in validator registry
balance
string
The current validator balance in gwei
Request
1
curl -X GET \
2
"https://docs-demo.quiknode.pro/eth/v1/beacon/states/head/validator_balances?id=0xb8309891538bca2c1cb416a0a60378185ea705f665b8cf7e60b4b22380145bc611fb711062a835bf599b86d04e0d449a" \
3
-H "accept: application/json"
4
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free