Skip to main content
POST
Get validators 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

The lists of validator IDs and statuses to filter on. Either or both may be null to signal that no filtering on that attribute is desired.

ids
string[]

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 value is []) or the property is omitted then all validators will be returned.

statuses
enum<string>[]

An array of validator statuses to filter on.

If the supplied list is empty (i.e. the value is []) or the property is omitted then validators with all statuses will be returned.

Possible statuses:

  • pending_initialized - When the first deposit is processed, but not enough funds are available (or not yet the end of the first epoch) to get validator into the activation queue.
  • pending_queued - When validator is waiting to get activated, and have enough funds etc. while in the queue, validator activation epoch keeps changing until it gets to the front and make it through (finalization is a requirement here too).
  • active_ongoing - When validator must be attesting, and have not initiated any exit.
  • active_exiting - When validator is still active, but filed a voluntary request to exit.
  • active_slashed - When validator is still active, but have a slashed status and is scheduled to exit.
  • exited_unslashed - When validator has reached regular exit epoch, not being slashed, and doesn't have to attest any more, but cannot withdraw yet.
  • exited_slashed - When validator has reached regular exit epoch, but was slashed, have to wait for a longer withdrawal period.
  • withdrawal_possible - After validator has exited, a while later is permitted to move funds, and is truly out of the system.
  • withdrawal_done - (not possible in phase0, except slashing full balance) - actually having moved funds away

Validator status specification

Available options:
pending_initialized,
pending_queued,
active_ongoing,
active_exiting,
active_slashed,
exited_unslashed,
exited_slashed,
withdrawal_possible,
withdrawal_done
Example:

"active_ongoing"

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