Home

getchaintxstats

POST
https://dcr.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Compute statistics about the total number and rate of transactions in the blockchain. You can optionally specify the number of blocks and a block hash to start from.

Body

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

Parameters:

  1. nblocks (integer, optional) — Number of blocks to average over. Default: 1 month worth (~4320).
  2. blockhash (string, optional) — Hash of the block to stop at; defaults to the chain tip.
Show child attributes
One of
integer
string

Response

200OK

Chain transaction statistics retrieved successfully

401Unauthorized

Unauthorized

500Internal Server Error

Internal Server Error