Home

getblockheader

POST
https://zec.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-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

application/json
jsonrpcstringrequired
idstringrequired
methodstringgetblockheaderrequired
paramsArray<string | boolean>required

Parameters:

  1. blockhash (string) — The hash of the block.
  2. verbose (boolean, optional) — If true, returns a JSON object; if false, returns a hex string. Default is true.
Show child attributes
One of
string
boolean

Response

200OK

Block header information retrieved successfully

401Unauthorized

Unauthorized

500Internal Server Error

Internal Server Error