Get state SSZ HashTreeRoot
Calculates HashTreeRoot for state with given 'stateId'. If stateId is root, the same value will be returned.
Parameters
Name | Required | Type | Detail |
---|---|---|---|
state_id | ✅ | String | State 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"
}
}