Skip to main content

getchaintxstats RPC Method

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

Updated on
Feb 03, 2026

Parameters

nblocks
integer

default=one month. The window's size in number of blocks

blockhash
string

default=chain tip. The hash of the block that ends the window

Returns

result
object

Chain transaction statistics for the requested window

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_final_block_height
integer

The height of the final block in the window

window_block_count
integer

The window's size in terms of blocks

window_interval
integer

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

window_tx_count
integer

The number of transactions in the window 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

(Optional) JSON-RPC error when the request failed; omitted or null on success

code
integer

Error code

message
string

Error message

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"time": 1769215475,
5
"txcount": 1301087928,
6
"window_final_block_hash": "00000000000000000000b286a4d4ac73f6ad82e54d9ccf6d2d71c492ceeb4930",
7
"window_final_block_height": 933586,
8
"window_block_count": 2016,
9
"window_interval": 1236672,
10
"window_tx_count": 5491262,
11
"txrate": 4.44035443512912
12
},
13
"id": 1
14
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"time": 1769215475,
5
"txcount": 1301087928,
6
"window_final_block_hash": "00000000000000000000b286a4d4ac73f6ad82e54d9ccf6d2d71c492ceeb4930",
7
"window_final_block_height": 933586,
8
"window_block_count": 2016,
9
"window_interval": 1236672,
10
"window_tx_count": 5491262,
11
"txrate": 4.44035443512912
12
},
13
"id": 1
14
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free