Home

getblockstats

POST
https://btc.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns a variety of statistics about the block identified by its height or block hash.

Body

application/json

Returns a variety of statistics about the block identified by its height or block hash.

Request payload for getblockstats.

jsonrpcstring1.02.0required

JSON-RPC protocol version.

methodstringgetblockstatsrequired

Name of the RPC method.

paramsArray<integer>

Parameters for the method. For getblockstats, this is an array containing a single value – either the block height (integer) or block hash (string).

idstringrequired

Request identifier. The response will echo this value. Can be any string or number.

Response

200OK

Successful block statistics retrieval.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error