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

Contents

eth-v1-beacon-states-{state_id}-root 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}.

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:

    root - string - HashTreeRoot of BeaconState object.

Code Examples:

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