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

Get validators balances from state

Returns filterable list of validators balances.

Balances will be returned for all indices or public key that match known validators. If an index or public key does not match any known validator, no balance will be returned but this will not cause an error. There are no guarantees for the returned data in terms of ordering; the index and is returned for each balance, and can be used to confirm for which inputs a response has been returned.

Parameters

NameRequiredTypeDetail
state_idStringState identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", <hex encoded stateRoot with 0x prefix>.
idarray[String]Either hex encoded public key (any bytes48 with 0x prefix) or validator index

Result

Returns a list of validators balances.

Example

Request

curl <your-endpoint>/eth/v1/beacon/states/genesis/validator_balances?id=1

Return

{
    "data": [
        {
            "index": "1",
            "balance": "36214943061"
        }
    ],
    "execution_optimistic": false
}