Home

getblockstats

POST
https://dcr.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. Available in Bitcoin Core v0.17.0 and later.

Body

application/json
jsonrpcstringrequired
idstringrequired
methodstringgetblockstatsrequired
paramsArray<integer | string | Array<string>>required

Parameters:

  1. height_or_hash (integer or string) — The block height (integer) or block hash (string).
  2. stats (array, optional) — Specific stats to return. If not specified, returns all.
Show child attributes
One of
integer
string
Array<string>

Response

200OK

Block statistics returned successfully

401Unauthorized

Unauthorized

500Internal Server Error

Internal Server Error