Zcash
getblockstats8 kredi
Blok başına istatistikleri hesaplar (tutarlar satoshi cinsinden)
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
| hash_or_height | string | number | Blok hash değeri veya blok yüksekliği. |
| stats | string[] | Döndürülecek istatistiklerin adları, örneğin avgfee, avgfeerate, height, ins, outs, subsidy, time, totalfee, txs. Varsayılan tüm değerler. (isteğe bağlı) |
Dönüş değeri
Tür
Object
Blok başına istatistikler; tutarlar satoshi, ücret oranları sat/vB cinsindendir: 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 verildiğinde yalnızca istenen istatistikler yer alır.
Kod örnekleri
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"
]
]
}'