Skip to main content

/eth/v1/beacon/states/{state_id}/root REST API Endpoint

Returns the HashTreeRoot for a given 'stateId'. If the stateId is root, the same value will be returned.

Updated on
May 21, 2026

Path Parameters

state_id
string
REQUIRED

The state identifier. It can be one of: head (canonical head in node's view), genesis, finalized, justified, slot and stateRoot (hex encoded stateRoot with 0x prefix)

Returns

execution_optimistic
Boolean

It's true if the response references an unverified execution payload. The optimistic information may be invalidated at a later time. If the field is not present, assume the false value

data
object

The object with the following values:

root
string

The HashTreeRoot of BeaconState object

Request
Response
1
{
2
"execution_optimistic": false,
3
"finalized": false,
4
"data": {
5
"root": "0x3b452e9d81205d40113a04c3193456a573029f6e698d4395c64e2f7896919f68"
6
}
7
}
1
{
2
"execution_optimistic": false,
3
"finalized": false,
4
"data": {
5
"root": "0x3b452e9d81205d40113a04c3193456a573029f6e698d4395c64e2f7896919f68"
6
}
7
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free