getchaintxstats

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

⚠ This endpoint is only available with Blast access.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
nblocksintegerOptional
The size of the window in number of blocks. Defaults to approximately one month.
blockhashstringOptionalformat: "^[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_countinteger or null
Number of transactions in the window.
window_intervalinteger or null

Elapsed time (in seconds) across the window.

txratedouble or null
Average transaction rate per second across the window.