Build more with QuickNode - New pricing plans and a free tier! Read the press release

Contents

eth-v1-beacon-states-{state_id}-validators RPC method

Parameters:

  1. 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}.
  2. id - array - Either hex encoded public key (any bytes48 with 0x prefix) or validator index.
  3. status - array - Validator status specification

Returns:

  1. execution_optimistic - Boolean - 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.
  2. Data - array[objects] - with the following values:

    index - String - Index of validator in validator registry.

    balance - String - Current validator balance in gwei.

    status - String - 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 reguler exit epoch, not being slashed, and doesn't have to attest any more, but cannot withdraw yet.

    exited_slashed - When validator has reached reguler 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

    validator - object

    pubkey - String - The validator's BLS public key, uniquely identifying them. _48-bytes, hex encoded with 0x prefix, case insensitive.

    withdrawal_crendetials - String - Root of withdrawal credentials.

    effective_balance - String - Balance at stake in Gwei.

    slashed - String - Was validator slashed (not longer active).

    activation_elgibility_epoch - String - When criteria for activation were met.

    activation_epoch - String - Epoch when validator activated. 'FAR_FUTURE_EPOCH' if not activated.

    exit_epoch - String - Epoch when validator exited.

    withdrawable_epoch - String - When validator can withdraw or transfer funds. 'FAR_FUTURE_EPOCH' if not defined.

Code Examples:

curl -X GET \
    "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/states/head/validators?status=active" \
    -H "accept: application/json"
Ready to try QuickNode? Get Started