ТарифыGitHubКабинет

Dash

getblockstatsКредиты: 30

Computes per-block statistics (amounts in satoshis)

Сеть: dash

Параметры

ИмяТипОписание
hash_or_heightstring | numberBlock hash or block height.
statsstring[]Names of the statistics to return, for example avgfee, avgfeerate, height, ins, outs, subsidy, time, totalfee, txs. Default is all values. (необязательно)

Результат

Тип

Object

Per-block statistics, with amounts in satoshis and feerates in 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. Only the requested stats are included when stats is given.

Примеры кода

curl https://holy-burned-sky-dash-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"
    ]
  ]
}'