Zcash
getblockstats8 크레딧
블록별 통계를 계산합니다(금액은 satoshis 단위).
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| hash_or_height | string | number | 블록 해시 또는 블록 높이. |
| stats | string[] | 반환할 통계 이름, 예: avgfee, avgfeerate, height, ins, outs, subsidy, time, totalfee, txs. 기본값은 모든 값. (선택) |
반환값
타입
Object
블록별 통계이며 금액은 satoshis, 수수료율은 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"
]
]
}'