/eth/v1/beacon/states/{state_id}/committees
Get all committees for a state
Retrieves the committees for the given state.
Path parameters
state_idstringRequiredExample:
State identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", <slot>, <hex encoded stateRoot with 0x prefix>.
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
anyOptional
indexall ofOptional
Restrict returned values to those matching the supplied committee index.
stringOptionalExample:
1
anyOptional
slotall ofOptional
Restrict returned values to those matching the supplied slot.
stringOptionalExample:
1
anyOptional
Responses
200
Success
application/json
400
Invalid state ID, index, epoch, slot, or combination thereof
application/json
404
State not found
application/json
500
Beacon node internal error.
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?