# 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:

  • slotstring — 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_rootstring — 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:

Example:

curl -X GET https://beacon-nd-123-456-789.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d/eth/v1/beacon/headers