eth_getHeaderByNumber
eth_getHeaderByNumber
Returns only the header fields of a block — no transaction list, uncles, or withdrawals body. Cheaper than eth_getBlockByNumber when you only need header data such as stateRoot, baseFeePerGas, or timestamp.
⚡ Compute Units: 15 CU
Request
Response
Block header, or null if the block is not found.
32-byte hash of the parent block
8-byte value used in proof-of-work mining. On post-Merge chains (all Conduit rollups) this is always "0x0000000000000000" — the field is retained for header-shape backwards compatibility.
32-byte hash. Post-Merge this field carries the prevRandao value (the beacon chain randomness) rather than a proof-of-work mix hash.
20-byte address of the beneficiary
The block number, hex-encoded
32-byte block hash
Base fee per gas in wei, hex-encoded. Introduced by EIP-1559 (London). Absent on pre-London blocks.
Root of the withdrawals trie. Introduced by EIP-4895 (Shanghai). Absent on pre-Shanghai blocks.
Total blob gas used by the transactions in this block, hex-encoded. Introduced by EIP-4844 (Cancun). Absent on pre-Cancun blocks.
Running total of blob gas consumed in excess of the target, used to compute the blob gas price, hex-encoded. Introduced by EIP-4844 (Cancun). Absent on pre-Cancun blocks.
Parent beacon block root hash. Introduced by EIP-4788 (Cancun). Absent on pre-Cancun blocks.