Skip to main content
POST
Get validator balances from state
Use POST instead of GET when you ask for many validators at once, because the IDs go in the request body instead of the URL.

Path Parameters

state_id
string
required

State identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", <slot>, <hex encoded stateRoot with 0x prefix>.

Body

application/json

An array of values, with each value either a hex encoded public key (any bytes48 with 0x prefix) or a validator index.

If the supplied list is empty (i.e. the body is []) or no body is supplied then balances will be returned for all validators.

Either hex encoded public key (any bytes48 with 0x prefix) or validator index

Response

Success

execution_optimistic
boolean
required

True if the response references an unverified execution payload. Optimistic information may be invalidated at a later time. If the field is not present, assume the False value.

Example:

false

finalized
boolean
required

True if the response references the finalized history of the chain, as determined by fork choice. If the field is not present, additional calls are necessary to compare the epoch of the requested information with the finalized checkpoint.

Example:

false

data
object[]
required