Register and show off your project at Ethereum QuickPitch and win $10,000. Apply now

Contents

eth-v1-beacon-headers RPC method

Parameters:

  1. slot - string - Fetch sync committees for the given epoch. If not present then the sync committees for the epoch of the state will be obtained.
  2. parent_root - 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 - array[objects] - with the following values:

    root - string - The corresponding root.

    canonical - boolean

    header - object - The SignedBeaconBlockHeader object envelope from the CL spec.

    message - object - The BeaconBlockHeader object from the CL spec.

    slot - string - The slot to which this block corresponds.

    proposer_index - string - Index of validator in validator registry.

    parent_root - string - The signing merkle root of the parent BeaconBlock.

    state_root - string - The tree hash merkle root of the BeaconState for the BeaconBlock.

    body_root - string - The tree hash merkle root of the BeaconBlockBody for the BeaconBlock.

    signature - string - The signature.

Code Examples:

curl -X GET \
    "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/headers" \
    -H "accept: application/json"
Ready to get started? Create a free account