bitcoind.app
CommandsGuidesContact ↗
Home/Blockchain/getchaintxstats
Blockchain

getchaintxstats

Compute statistics about the total number and rate of transactions in the chain.

Parameters

nblocksnumberoptional
Size of the window in number of blocks. Default: one month
blockhashstringoptional
The hash of the block ending the window

Returns

objectTransaction statistics

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"getchaintxstats","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "time": 1713571767,
  "txcount": 987654321,
  "txrate": 7.234
}
← Previous
getchaintips
Next →
getdifficulty

More Blockchain Commands

getbestblockhashgetblockgetblockchaininfogetblockcountgetblockfiltergetblockhash

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗