getchaintxstats

Calculates statistics about the overall transaction rate and volume of the blockchain over a window of blocks.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
nblocksintegerRequired

The size of the window in number of blocks. Defaults to approximately one month.

blockhashstringRequiredformat: "^[a-fA-F0-9]{64}$"

The block hash at which the window ends. Defaults to chain tip.

Response

The calculated chain transaction statistics.

timeinteger

Timestamp for the last block in the window (UNIX epoch).

txcountinteger

Total number of transactions up to the final block.

window_final_block_hashstring

Hash of the final block in the window.

window_final_block_heightinteger

Height of the final block in the window.

window_block_countinteger

Number of blocks included in the window.

window_tx_countintegerOptional

Number of transactions in the window.

window_intervalintegerOptional

Elapsed time (in seconds) across the window.

txratedoubleOptional

Average transaction rate per second across the window.