ドキュメント
料金GitHubダッシュボード

Zcash

getchaintxstats8クレジット

チェーン内のトランザクションの総数とレートに関する統計を計算します

ネットワーク: zcash

パラメータ

名前型説明
nblocksnumberウィンドウのサイズ(ブロック数)。デフォルトは 1 か月分のブロック。 (任意)
blockhashstringウィンドウの末尾となるブロックのハッシュ。デフォルトはチェーン 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
  ]
}'