Zcash
gettxoutsetinfo8 Credits
Gibt Statistiken zur Menge der nicht ausgegebenen Transaktions-Outputs zurück
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| hash_type | string | Zu berechnender UTXO-Set-Hash: hash_serialized_3 (Standard), muhash oder none. Ältere Versionen verwenden hash_serialized_2. (optional) |
| hash_or_height | string | number | Block-Hash oder Höhe, für die berichtet wird. Standard ist der Chain-Tip. Funktioniert für andere Blöcke nur, wenn coinstatsindex aktiviert ist. (optional) |
| use_index | boolean | coinstatsindex verwenden, wenn verfügbar. Standard ist true. (optional) |
Rückgabewert
Typ
Object
height, bestblock, txouts, bogosize, der angeforderte Hash (hash_serialized_3 oder muhash), total_amount und, wenn nicht aus coinstatsindex bedient, transactions und disk_size. Mit coinstatsindex zusätzlich total_unspendable_amount und block_info. Dieser Aufruf scannt das gesamte UTXO-Set und kann Minuten dauern.
Codebeispiele
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"
]
}'