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

Get all committees for a state

Get all committees for a state.

get

Retrieves the committees for the given state.

Path parameters
state_idstringRequired

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
Query parameters
epochall ofOptional

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

stringOptionalExample: 1
and
anyOptional
indexall ofOptional

Restrict returned values to those matching the supplied committee index.

stringOptionalExample: 1
and
anyOptional
slotall ofOptional

Restrict returned values to those matching the supplied slot.

stringOptionalExample: 1
and
anyOptional
Responses
200
Success
application/json
get
GET /v1/<YOUR_API_KEY_HERE>//eth/v1/beacon/states/{state_id}/committees HTTP/1.1
Host: mainnet.ethereum.validationcloud.io
Accept: */*
{
  "execution_optimistic": null,
  "data": [
    {
      "index": null,
      "slot": "1",
      "validators": [
        "1"
      ]
    }
  ]
}

curl -X GET \
    "https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/beacon/states/head/committees" \
    -H "Content-Type: application/json"

Last updated

Was this helpful?