Get block headers
Retrieves block headers matching given query. By default it will fetch current head slot blocks.
Parameters
Name | Required | Type | Detail |
---|---|---|---|
slot | ❌ | String (Query) | number |
parent_root | ❌ | String (Query) | block hash |
Result
Returns block headers matching given query. By default it will fetch current head slot blocks.
Example
Request
curl <your-endpoint>/eth/v1/beacon/headers?slot=4790527&parent_root=0x0b49119e5483e9d5c22841bcf534206c941b48559b997268a091d6837ec429b6
Return
{
"data": [
{
"root": "0xaffe341f7df8644faaf2fd09450f1553dbd50eeba793a648aa41c802fb8b7f7e",
"canonical": true,
"header": {
"message": {
"slot": "4790527",
"proposer_index": "296162",
"parent_root": "0x0b49119e5483e9d5c22841bcf534206c941b48559b997268a091d6837ec429b6",
"state_root": "0xa6e3803c8b53162d39884122740dcc6807062df6dc25eecb461b91fc063bd4ba",
"body_root": "0xdb6deb2d3a7db173fb9c61a98222002ead05752114ea64874ae7807e86148a7d"
},
"signature": "0x80d35e689a0f91757c59ff1962441c1599978f417842691e74ee50b91206847a12ce90950d80369429a1ca6b6bee900515bf60505be4966b14f9ca7360fb4d4055addcdfccbe1348dad80c9e1c0d128d9f65c30529fe37574c6750173092cd5f"
}
}
],
"execution_optimistic": false
}