Zcash
gettxoutsetinfo8 크레딧
미사용 트랜잭션 출력 집합에 관한 통계를 반환합니다.
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| hash_type | string | 계산할 UTXO 집합 해시: hash_serialized_3(기본값), muhash 또는 none. 이전 버전은 hash_serialized_2를 사용합니다. (선택) |
| hash_or_height | string | number | 보고 대상 블록 해시 또는 높이. 기본값은 체인 tip. 다른 블록은 coinstatsindex가 활성화된 경우에만 동작합니다. (선택) |
| use_index | boolean | 가능하면 coinstatsindex를 사용합니다. 기본값은 true. (선택) |
반환값
타입
Object
height, bestblock, txouts, bogosize, 요청한 해시(hash_serialized_3 또는 muhash), total_amount, 그리고 coinstatsindex에서 제공되지 않는 경우 transactions와 disk_size. coinstatsindex 사용 시 total_unspendable_amount와 block_info도 포함. 이 호출은 전체 UTXO 집합을 스캔하므로 수 분이 걸릴 수 있습니다.
코드 예제
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": "gettxoutsetinfo",
"params": [
"hash_serialized_3"
]
}'