Skip to main content

getchaintxstats RPC Method

Calculates data about the total number and rate of transactions in the chain.

Updated on
Feb 04, 2026

Parameters

nblocks
numeric

Default one month. The window size in number of blocks

blockhash
string

Default chain tip. The hash of the block that ends the window

Returns

result
object

The result is a JSON object with the following fields:

time
integer

The timestamp for the last block in the window, defined in UNIX epoch time

txcount
integer

The total number of chain transactions up to that point

window_final_block_hash
string

The hash of the final block in the window

window_block_count
integer

The window's size in terms of blocks

window_tx_count
integer

The number of transactions in the window and only returned if "window_block_count" is > 0

window_interval
integer

The elapsed time in the window in seconds and only returned if "window_block_count" is > 0

txrate
number

The average rate of transactions per second in the window and only returned if "window_interval" is > 0

error
object | null

JSON-RPC error object when the request failed, or null on success

id
integer

The JSON-RPC request identifier

Request
Response
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
},
11
"error": null,
12
"id": 1
13
}
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
},
11
"error": null,
12
"id": 1
13
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free