getblockhash
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the block hash of the block at the given height in the blockchain. You must provide a block height (0-based index).
Body
Returns the block hash of the block at the given height in the blockchain. You must provide a block height (0-based index).
Request payload containing the documented method parameters and client request identifier.
jsonrpcstringrequiredJSON-RPC protocol version.
idstringrequiredClient-provided request identifier echoed in the response.
methodstringgetblockhashrequiredJSON-RPC method name.
paramsArray<integer>requiredParameters:
height(integer) — The height (index) of the block.
Response
Block hash successfully retrieved
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