/eth/v1/beacon/states/{state_id}/root

Get state SSZ HashTreeRoot

Provides the 'stateId' to compute the HashTreeRoot for the supplied state. The same value will be returned if stateId is root.

Example Request and Result for v1/beacon/states/{state_id}/root

In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/beacon/states/{state_id}/root endpoint. Additionally, we present the resulting response containing information about the supplied "stateId" to calculate the HashTreeRoot for the state.

Parameters

The example in this section uses a non-existing project id.

Make sure you replace it with your Ethereum Holesky Beacon endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Get state SSZ HashTreeRoot

GET https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/states/{state_id}/root

Path Parameters

{
  "execution_optimistic": true,
  "finalized": false,
  "data": {
    "root": "0x7b0a261289bdb54a4c42d6ee1f832ca39259317baa32b837571343c0e5c6ea22"
  }
}

Curl Request example

curl -X 'GET' \
  'https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/states/head/root' \
  -H 'accept: application/json'

Last updated