Zcash
scantxoutset8 crédits
Parcourt l’ensemble UTXO à la recherche d’entrées correspondant à des output descriptors
Paramètres
| Nom | Type | Description |
|---|---|---|
| action | string | start lance un scan, status indique la progression d’un scan en cours, abort l’annule. |
| scanobjects | (string | Object)[] | Obligatoire pour start. Output descriptors à rechercher : soit une chaîne descriptor, soit un objet { desc, range } où range (nombre ou [begin, end], par défaut 1000) limite les index HD explorés. (facultatif) |
Valeur renvoyée
Type
Object | boolean | null
start renvoie success, txouts (sorties parcourues), height, bestblock, unspents (txid, vout, scriptPubKey, desc, amount, height) et total_amount. status renvoie progress (pourcentage) ou null si aucun scan n’est en cours. abort renvoie true si un scan a été annulé. Un scan complet peut prendre plusieurs minutes.
Exemples de code
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": "scantxoutset",
"params": [
"start",
[
"addr(bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq)"
]
]
}'