/eth/v1/beacon/states/{state_id}/validators/{validator_id}

Get validators from state by id

Returns the validator, together with the status and balance, given the validator's state, ID, or public key.

Example Request and Result for /v1/beacon/states/{state_id}/validators/{validator_id}

In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/beacon/states/{state_id}/validators/{validator_id} endpoint. Additionally, we present the resulting response containing information about state's validator.

Parameters

FieldTypeDescription

state_id*

string

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

Example : head

validator_id*

string

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

The example in this section uses a non-existing project id.

Make sure you replace it with your Ethereum Holesky Beacon endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Get validators from state by id

GET https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/states/{state_id}/validators/{validator_id}

Path Parameters

NameTypeDescription

state_id*

String

head

validator_id

String

0x89691f9ce2f5d2ce2bb206f7f711f893dc90c7dc940bd7ca52cad0beef973ddd4e510f67b9ad850f09e791d6c61e59fb

{
  "execution_optimistic": true,
  "finalized": false,
  "data": {
    "index": "1566847",
    "balance": "1000000000",
    "status": "pending_initialized",
    "validator": {
      "pubkey": "0x89691f9ce2f5d2ce2bb206f7f711f893dc90c7dc940bd7ca52cad0beef973ddd4e510f67b9ad850f09e791d6c61e59fb",
      "withdrawal_credentials": "0x0100000000000000000000005c7255ac3b52cdd7c547162d2f8c3fecdef75faf",
      "effective_balance": "1000000000",
      "slashed": false,
      "activation_eligibility_epoch": "18446744073709551615",
      "activation_epoch": "18446744073709551615",
      "exit_epoch": "18446744073709551615",
      "withdrawable_epoch": "18446744073709551615"
    }
  }
}

Curl Request example

curl -X 'GET' \
  'https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/states/head/validators/0x89691f9ce2f5d2ce2bb206f7f711f893dc90c7dc940bd7ca52cad0beef973ddd4e510f67b9ad850f09e791d6c61e59fb' \
  -H 'accept: application/json'

Last updated