Skip to content
Alchemy Logo

getblockheader

POST
/{apiKey}

Returns the block header for the specified block hash.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringformat: "^[a-fA-F0-9]{64}$"required

The block hash to retrieve the header for.

booleanoptionaldefaults to true

Whether to return a JSON object (true) or raw hex-encoded string (false). Default is true.

Responses

200

The block header as an object or hex string depending on verbose.

Was this page helpful?