getblockheader

Returns the block header for the specified block hash.

⚠ This endpoint is only available with Blast access.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
blockhashstringRequiredformat: "^[a-fA-F0-9]{64}$"
The block hash to retrieve the header for.
verbosebooleanOptionalDefaults to true

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

Response

The block header as an object or hex string depending on verbose.
Block Header (Verbose = true)object
OR
string

Hex-encoded block header