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

Get validator from state by id

Returns validator specified by state and id or public key along with status and balance.

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 validator state by id.

Parameters

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 validator from state by id

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

Path Parameters

{
  "execution_optimistic": false,
  "finalized": false,
  "data": {
    "index": "1",
    "balance": "1",
    "status": "active_ongoing",
    "validator": {
      "pubkey": "0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a",
      "withdrawal_credentials": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
      "effective_balance": "1",
      "slashed": false,
      "activation_eligibility_epoch": "1",
      "activation_epoch": "1",
      "exit_epoch": "1",
      "withdrawable_epoch": "1"
    }
  }
}

Curl Request example

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

Last updated