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

Get sync committees for a state

Get sync committees for a state.

get

Retrieves the sync 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 sync committees for the given epoch. If not present then the sync committees for the epoch of the state will be obtained.

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

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

Last updated

Was this helpful?