zone_getBeaconStateRoot
Returns the block hash and header state root of a beacon chain block that the node has followed. The values come from the node's own records of the beacon chain, not from its beacon source.
Only recent beacon heights are available: the node keeps roughly the last 48,000 beacon blocks. Requesting an older height returns an "invalid params" error whose data.firstRetained is the oldest height still held. Requesting a height above the followed history returns a -32001 error.
Path Parameters
stringrequireddefaults to
docs-demoFor higher throughput, create your own API key
Request
string
format: "^0x([1-9a-f]+[0-9a-f]*|0)$"requiredThe beacon chain height, as a hex-encoded quantity.
Responses
200
The block hash and state root of the requested beacon block.
Errors
-32001The beacon height is above the followed history
-32602The beacon height is no longer held
-32000Read failure or timeout
Was this page helpful?