Zcash
getchaintxstats8クレジット
チェーン内のトランザクションの総数とレートに関する統計を計算します
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
| nblocks | number | ウィンドウのサイズ(ブロック数)。デフォルトは 1 か月分のブロック。 (任意) |
| blockhash | string | ウィンドウの末尾となるブロックのハッシュ。デフォルトはチェーン tip。 (任意) |
戻り値
型
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
]
}'