Home

Get Block Hash by Height

POST
https://ont.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Retrieves the hash of a block at a specific height (block number). Block height starts at 0 for the genesis block and increments by 1 for each subsequent block.

Body

application/json
jsonrpcstringrequired

The JSON-RPC protocol version. Must be "2.0" for JSON-RPC 2.0 specification compliance.

methodstringrequired

The RPC method name. For this operation, it must be "getblockhash".

paramsArray<integer>required

An array containing a single parameter: the block height (index). Block height is a zero-based integer index.

idintegerrequired

A unique identifier for the request, used to correlate the response with the request.

Response

200OK

Successful response containing the block hash.