Skip to main content

eth-v1-beacon-states-{state_id}-sync_committees RPC Method

Retrieves the sync committees for the given state.

Updated on
Oct 4, 2023

eth-v1-beacon-states-{state_id}-sync_committees RPC Method

Parameters

state_id
string
The state identifier. It can be one of: head (canonical head in node's view), genesis, finalized, justified, slot and stateRoot (hex encoded stateRoot with 0x prefix)
epoch
string
The fetch sync committees for the given epoch. If not present then the sync committees for the epoch of the state will be obtained

Returns

execution_optimistic
Boolean
It's true if the response references an unverified execution payload. The optimistic information may be invalidated at a later time. If the field is not present, assume the false value
data
The object with the following values:
validators
array
All of the validator indices in the current sync committee
validator_aggregate
array
The subcommittee slices of the current sync committee
Request
1
curl -X GET \
2
"https://docs-demo.xdai.quiknode.pro/eth/v1/beacon/states/head/sync_committees" \
3
-H "accept: application/json"
4
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free