getblockheader

Returns the block header for the specified block hash.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
blockhashstringRequiredformat: "^[a-fA-F0-9]{64}$"

The block hash to retrieve the header for.

verbosebooleanRequired

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.

Getblockheader Result0object
OR
string

Hex-encoded block header