Home

Get Best Block Hash

POST
https://ont.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the hash of the best (most recent) block in the ONT blockchain. This method retrieves the hash of the block with the highest height in the current chain.

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 "getbestblockhash".

paramsarrayrequired

An array of method parameters. This method takes no parameters, so an empty array is required.

idintegerrequired

A unique identifier for the request, used to correlate the response with the request. This can be any integer value chosen by the client.

Response

200OK

Successful response containing the hash of the best block.