AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     


eth-v1-beacon-states-{state_id}-root REST API Endpoint


  1. 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)


  1. 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
  2. Data - The object with the following values:

    root - string - The HashTreeRoot of BeaconState object

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/v1/beacon/states/head/root", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
Ready to get started? Create a free account