getblockcount
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the number of blocks in the longest blockchain. This number increases as new blocks are added.
Body
Returns the number of blocks in the longest blockchain. This number increases as new blocks are added.
Request payload containing the documented method parameters and client request identifier.
jsonrpcstringrequiredJSON-RPC protocol version.
idstringrequiredClient-provided request identifier echoed in the response.
methodstringgetblockcountrequiredJSON-RPC method name.
paramsarrayrequiredThis method takes no parameters.
Response
Current block height retrieved successfully
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