Get block header
Retrieves block header for given block id.
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>. |
Result
Returns block header for given block id.
Example
Request
curl <your-endpoint>/eth/v1/beacon/headers/head
Return
{
"data": {
"root": "0xf244ef8dab341420ada9bca7c20e0d4b1502a3217933bb72f72c5fd3e5499f71",
"canonical": true,
"header": {
"message": {
"slot": "4790706",
"proposer_index": "278281",
"parent_root": "0x51985f5c928588d3df8010ae2c0076d33a443ab9152d1ca972f135fc34907579",
"state_root": "0xc955329924ea090030f0c2342c3feb5266758603c6221f4991ae3cbe87101683",
"body_root": "0x5a90aa40b25f3b89bcf65242220987241689be43ceefc819f60f6593059d9a86"
},
"signature": "0xb1d089f97345c074bf4e208ce855a61d84eed3f2dbeb2fe27167389b6898060ea7c023f369dde821ee63b4f31cbd24cf177dbe74982bacacfe457203f0dfe5441e28b56a994f82a14f8e419047f8882e06c36912b8158e7ecaf9afee3f5c19e4"
}
},
"execution_optimistic": false
}