Beacon headers by slot

📘

Get the non-pruned state

To get a correct response from the interactive API example, make sure you provide the latest or close to latest slot. For the latest slot number, see https://beaconcha.in/

The /eth/v1/beacon/headers method is a vital API endpoint in the Ethereum Beacon Chain, designed to provide a list of recent block headers. Block headers are significant as they contain essential data about the blocks, such as their identification, proposers, and state, without the need to download the entire block content. This method is especially useful for developers and network participants who need to quickly and efficiently access block information for purposes like verification, analysis, and network synchronization.

👍

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • none

Response

  • array — list of recent block headers.
    • Each object in the array represents a block header, containing:
      • root — the root of the block, serving as a cryptographic identifier unique to each block.
      • canonical — a boolean value indicating whether the block is part of the canonical chain.
      • header — the detailed information of the block header, including:
        • slot: The slot number at which the block was proposed, an integral part of the timekeeping system in the Beacon Chain.
        • proposer_index: The index of the validator who proposed the block, identifying the responsible party for the block's creation.
        • parent_root: The root of the parent block, crucial for maintaining the continuity and integrity of the blockchain.
        • state_root: The root of the beacon chain state after the block's effect, essential for verifying the current state of the blockchain.
        • body_root: The root of the block's body, which encapsulates key block elements like transactions and attestations.

The /eth/v1/beacon/headers method is an indispensable tool in the Ethereum ecosystem, providing streamlined access to important block header information. It plays a critical role in maintaining the transparency, efficiency, and accessibility of the blockchain for various stakeholders.

Language
Click Try It! to start a request and see the response here!