Skip to content
Alchemy Logo

eth_getHeaderByHash

POST
/{apiKey}
CUs20

Returns the block header identified by the given block hash. Structurally identical to eth_getBlockByHash but omits body-level fields (size, transactions, uncles, withdrawals), making it cheaper to fetch when only consensus fields are needed (e.g., chain-tip anchoring for light clients or stateless validators).

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringformat: "^0x[0-9a-f]{64}$"required

The 32-byte hash of the block to retrieve.

Responses

200

The block header object, or null if no block with the given hash is known.

Was this page helpful?