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
}
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
}
getchaintxstats
method computes statistics about the total number and rate of transactions in the blockchain up to a specified block height or hash.
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.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.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.Statistics about the total number and rate of transactions in the chain
The response is of type object
.
Was this page helpful?