Get block root
Retrieves hashTreeRoot of BeaconBlock/BeaconBlockHeader.
Parameters
Name | Required | Type | Detail |
---|---|---|---|
block_id | ✅ | String | Block identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", , <hex encoded blockRoot with 0x prefix>. Example : head |
Result
Returns hashTreeRoot of BeaconBlock/BeaconBlockHeader
Example
Request
curl <your-endpoint>/eth/v1/beacon/blocks/143456/root
Return
{
"data": {
"root": "0x4cd581f0d772a81debab578a47a2133ef1d154f810ecdaaec457ffb468e86bdd"
},
"execution_optimistic": false
}