We're now supporting Polygon zkEVM!
Learn more here.


eth-v2-beacon-blocks-{block_id} REST API Endpoint


  1. block_id - string - The state identifier. It can be one of: head (canonical head in node's view), genesis, finalized, justified, slot and blockRoot {hex encoded blockRoot with 0x prefix}


  1. version - string - The enumeration. The possible values could be: phase0, altair, bellatrix
  2. Data - The 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:

var myHeaders = new Headers();
myHeaders.append("accept", "application/json");

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'

fetch("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v2/beacon/blocks/head", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
Ready to get started? Create a free account