文档
定价GitHub控制台

Zcash

getchaintxstats8 额度

计算链中交易总数和交易速率的统计数据

网络: zcash

参数

名称类型描述
nblocksnumber窗口大小(区块数)。默认为一个月的区块数。 (可选)
blockhashstring结束窗口的区块哈希。默认为链顶端。 (可选)

返回值

类型

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
  ]
}'