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

Get state SSZ HashTreeRoot

Calculates HashTreeRoot for state with given 'stateId'. If stateId is root, the same value will be returned.

Parameters

NameRequiredTypeDetail
state_idStringState identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", <hex encoded stateRoot with 0x prefix>.

Result

The genesis info of current chain.

Example

Request

curl <your-endpoint>/eth/v1/beacon/states/head/root

Return

{
  "execution_optimistic": false,
  "data": {
    "root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
  }
}