POST
/
788f110831fe13808302bd79796d55e8
curl --request POST \
  --url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "1.0",
  "method": "getchaintxstats",
  "params": {
    "nblocks": 100,
    "blockhash": "000000000000000000024b16f3c9bfd109d0c666dd8a694cfaeca1b6a0f0d112"
  },
  "id": 1
}'
{
  "result": {},
  "error": {},
  "id": 123
}

The getchaintxstats method computes statistics about the total number and rate of transactions in the blockchain up to a specified block height or hash.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • nblocks (required) — the time frame in blocks to which to compute the statistics.
  • blockhash (required) — the block hash up to which to compute the statistics.

Response

  • result — an object containing statistics about the total number and rate of transactions in the chain up to the specified block.
  • error — an object containing an error message if an error occurred, otherwise null.
  • id — an integer representing the ID of the request, used to match requests with responses.

Use case

The getchaintxstats method is useful for analyzing the transaction activity and growth of the blockchain up to a specific block. It provides valuable insights into the transaction volume and rate within the chain, aiding in blockchain analysis and monitoring.

Body

application/json
jsonrpc
string
default:1.0
method
string
default:getchaintxstats
params
object
id
integer
default:1

Response

200 - application/json
Statistics about the total number and rate of transactions in the chain
result
object

An object containing transaction statistics

error
object
id
integer