Get Block Count
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the total number of blocks in the ONT blockchain. This includes the genesis block, so the lowest possible value is 1. The block count is equivalent to the height of the best block plus one.
Body
application/json
jsonrpcstringrequiredThe JSON-RPC protocol version. Must be "2.0" for JSON-RPC 2.0 specification compliance.
methodstringrequiredThe RPC method name. For this operation, it must be "getblockcount".
paramsarrayrequiredAn array of method parameters. This method takes no parameters, so an empty array is required.
idintegerrequiredA unique identifier for the request, used to correlate the response with the request.
Response
200OK
Successful response containing the total block count.