Build more with QuickNode - New pricing plans and a free tier! Read the press release

Contents

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

Parameters:

  1. state_id - string - (Required) State identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", {slot}, {hex encoded stateRoot with 0x prefix}.
  2. epoch - string - Fetch sync committees for the given epoch. If not present then the sync committees for the epoch of the state will be obtained.

Returns:

  1. execution_optimistic - Boolean - True if the response references an unverified execution payload. Optimistic information may be invalidated at a later time. If the field is not present, assume the False value.
  2. Data - Object - with the following values:

    validator - array - All of the validator indices in the current sync committee.

    validator_aggregate - array - Subcommittee slices of the current sync committee.

Code Examples:

curl -X GET \
    "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/states/head/sync_committees" \
    -H "accept: application/json"

Ready to try QuickNode? Get Started