# eth/v1/beacon/headers RPC method
Ethereum consensus layer Beacon Chain API call that returns the block headers matching the given query. By default, it will fetch current head slot blocks.
Parameters:
slot
—string
— fetches sync committees (opens new window) for the given epoch. If not present, then the sync committees for the epoch of the state will be obtained.parent_root
—string
— fetches sync committees (opens new window) for the given epoch. If not present, then the sync committees for the epoch of the state will be obtained.
Returns:
execution_optimistic
—boolean
—true
if the response references an unverified execution payload. Optimistic information may be invalidated at a later time. If the field is not present, assume thefalse
value.data
—array
—objects
with:root
—string
— the corresponding root.canonical
—boolean
.header
—object
— the SignedBeaconBlockHeader (opens new window) object.message
—object
— the BeaconBlockHeader (opens new window) object.
slot
—string
— the slot to which this block corresponds.proposer_index
—string
— the index of the validator in the validator registry.parent_root
—string
— the signing merkle root of the parent BeaconBlock (opens new window).state_root
—string
— the tree hash merkle root of the BeaconState (opens new window) for the BeaconBlock (opens new window).body_root
—string
— the tree hash merkle root of the BeaconBlockBody (opens new window) for the BeaconBlock (opens new window).signature
—string
— the signature.
Example:
curl -X GET https://beacon-nd-123-456-789.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d/eth/v1/beacon/headers