/eth/v1/beacon/states/{state_id}/root
Get state SSZ HashTreeRoot
Calculates HashTreeRoot for state with given 'stateId'. If stateId is root, same value will be returned.
Path parameters
state_idstringRequiredExample:
State identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", <slot>, <hex encoded stateRoot with 0x prefix>.
head
Responses
200
Success
application/json
400
Invalid state ID
application/json
404
State not found
application/json
500
Beacon node internal error.
application/json
get
GET /v1/<YOUR_API_KEY_HERE>//eth/v1/beacon/states/{state_id}/root HTTP/1.1
Host: mainnet.ethereum.validationcloud.io
Accept: */*
{
"execution_optimistic": null,
"data": {
"root": null
}
}
curl -X GET \
"https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/beacon/states/head/root" \
-H "Content-Type: application/json"
Previous/eth/v1/beacon/states/{state_id}/finality_checkpointsNext/eth/v1/beacon/states/{state_id}/sync_committees
Last updated
Was this helpful?