/v1/beacon/headers

Retrieves block headers matching the given query. By default, it will fetch the current head slot blocks.

Query parameters

slotstringOptional
Slot number. If provided, returns headers for this slot.
parent_rootstringOptionalformat: "hex"
Parent root hash to filter block headers by.

Response

Successfully retrieved block headers.
execution_optimisticboolean or null
Whether the execution payload is optimistic.
finalizedboolean or null
Whether the block is finalized.
datalist of objects or null
List of block headers.