Zcash
getchaintxstats8 额度
计算链中交易总数和交易速率的统计数据
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| nblocks | number | 窗口大小(区块数)。默认为一个月的区块数。 (可选) |
| blockhash | string | 结束窗口的区块哈希。默认为链顶端。 (可选) |
返回值
类型
Object
time、txcount、window_final_block_hash、window_final_block_height、window_block_count,以及在窗口内有区块时的 window_tx_count、window_interval 和 txrate(平均每秒交易数)。
代码示例
curl https://holy-burned-sky-zcash-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getchaintxstats",
"params": [
2016
]
}'