Parameters
- nblocksnumeric
Default one month. The window size in number of blocks
- blockhashstring
Default chain tip. The hash of the block that ends the window
Returns
- resultobject
The result is a JSON object with the following fields:
- timeinteger
The timestamp for the last block in the window, defined in UNIX epoch time
- txcountinteger
The total number of chain transactions up to that point
- window_final_block_hashstring
The hash of the final block in the window
- window_block_countinteger
The window's size in terms of blocks
- window_tx_countinteger
The number of transactions in the window and only returned if "window_block_count" is > 0
- window_intervalinteger
The elapsed time in the window in seconds and only returned if "window_block_count" is > 0
- txratenumber
The average rate of transactions per second in the window and only returned if "window_interval" is > 0
- window_final_block_heightinteger
Height of the final block in the statistics window.
- errorobject | null
JSON-RPC error object when the request failed, or null on success
- idinteger
The JSON-RPC request identifier
1{2"result": {3"time": 1770077670,4"txcount": 413600599,5"window_final_block_hash": "000000000000000000516816955012ae5d1947e12fb984c547340da216ab29f9",6"window_block_count": 2016,7"window_tx_count": 167721,8"window_interval": 1203077,9"txrate": 0.1394100294494866,10"window_final_block_height": 97889111},12"error": null,13"id": 114}
1{2"result": {3"time": 1770077670,4"txcount": 413600599,5"window_final_block_hash": "000000000000000000516816955012ae5d1947e12fb984c547340da216ab29f9",6"window_block_count": 2016,7"window_tx_count": 167721,8"window_interval": 1203077,9"txrate": 0.1394100294494866,10"window_final_block_height": 97889111},12"error": null,13"id": 114}