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

Get all committees for a state

Retrieves the committees for the given state.

Parameters

NameRequiredTypeDetail
state_idStringState identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", <hex encoded stateRoot with 0x prefix>.
epochString (Query)Fetch committees for the given epoch. If not present then the committees for the epoch of the state will be obtained.
indexString (Query)Restrict returned values to those matching the supplied committee index.
slotString (Query)Restrict returned values to those matching the supplied slot.

Result

Returns the committees for the given state.

Example

Request

curl <your-endpoint>/eth/v1/beacon/states/head/committees?epoch=0&index=1&slot=1

Return

{
    "data": [
        {
            "index": "1",
            "slot": "1",
            "validators": [
                "7959",
                "18659",
                "10942",
                "7920",
                "4",
                ...
                "1244",
                "8500",
                "18946"
            ]
        }
    ],
    "execution_optimistic": false
}