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

Contents

eth-v2-beacon-blocks-{block_id} RPC method

Parameters:

  1. block_id - string - (Required) Block identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", {slot}, {hex encoded blockRoot with 0x prefix}.

Returns:

  1. version - string Enumeration. Possible values: [ phase0, altair, bellatrix ].
  2. Data - object - with the following values:

    message - object - The BeaconBlock 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 - object - The BeaconBlockBody object from the CL spec.

    signature - string - The signature.

Code Examples:

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