Home

getblockhash

POST
https://pivx.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

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

application/json
jsonrpcstringrequired
idstringrequired
methodstringgetblockhashrequired
paramsArray<integer>required

Parameters:

  1. height (integer) — The height (index) of the block.

Response

200OK

Block hash successfully retrieved

401Unauthorized

Unauthorized

500Internal Server Error

Internal Server Error