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

Zcash

getblockstats8クレジット

ブロックごとの統計を計算します(金額は satoshi 単位)

ネットワーク: zcash

パラメータ

名前型説明
hash_or_heightstring | numberブロックハッシュまたはブロック高。
statsstring[]返す統計の名前。例:avgfee, avgfeerate, height, ins, outs, subsidy, time, totalfee, txs。デフォルトはすべての値。 (任意)

戻り値

型

Object

ブロックごとの統計。金額は satoshi、feerate は sat/vB 単位:avgfee, avgfeerate, avgtxsize, blockhash, feerate_percentiles, height, ins, maxfee, maxfeerate, maxtxsize, medianfee, mediantime, mediantxsize, minfee, minfeerate, mintxsize, outs, subsidy, swtotal_size, swtotal_weight, swtxs, time, total_out, total_size, total_weight, totalfee, txs, utxo_increase, utxo_size_inc。stats を指定した場合は、要求した統計のみが含まれます。

コード例

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": "getblockstats",
  "params": [
    100000,
    [
      "avgfee",
      "height",
      "totalfee",
      "txs"
    ]
  ]
}'