getblockheader
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns information about the block header given a block hash.
You can specify whether to return a JSON object or raw hex-encoded string using the verbose flag.
Body
Returns information about the block header given a block hash.
You can specify whether to return a JSON object or raw hex-encoded string using the verbose flag.
Request payload containing the documented method parameters and client request identifier.
jsonrpcstringrequiredJSON-RPC protocol version.
idstringrequiredClient-provided request identifier echoed in the response.
methodstringgetblockheaderrequiredJSON-RPC method name.
paramsArray<string | boolean>requiredParameters:
blockhash(string) — The hash of the block.verbose(boolean, optional) — If true, returns a JSON object; if false, returns a hex string. Default is true.
Response
Block header information retrieved successfully
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Internal Server Error