/eth/v1/beacon/states/{state_id}/committees

Get all committees for a state

Retrieves the committees for the given state.

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

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

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

epoch

string

Fetch committees for the given epoch. If not present then the committees for the epoch of the state will be obtained.

index

string

Restrict returned values to those matching the supplied committee index.

slot

string

Restrict returned values to those matching the supplied slot.

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 all committees for a state

GET https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/states/<state_id>/committees

Path Parameters

NameTypeDescription

state_id*

String

head

Query Parameters

NameTypeDescription

epoch

string

1

index

string

1

slot

string

32

{
  "data": [
    {
      "index": "1",
      "slot": "32",
      "validators": [
        "111579",
        "753974",
        "214472",
        "509135",
        "887301",
        "1212009",
        "1378414",
        "1377224",
        "558479",
        "1393629",
        "664349",
        "439986",
        "1084511",
        "984012",
        "46230",
        "960934",
        "1442252",
        "1313871",
  ...

Curl Request example

curl -X 'GET' \
  'https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/states/head/committees?epoch=1&index=1&slot=32' \
  -H 'accept: application/json'

Last updated