Litecoin
scantxoutset120 créditos
Scans the UTXO set for entries that match output descriptors
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| action | string | start begins a scan, status reports progress of a running scan, abort cancels it. |
| scanobjects | (string | Object)[] | Required for start. Output descriptors to scan for: either a descriptor string or an object { desc, range } where range (number or [begin, end], default 1000) limits the HD indexes explored. (opcional) |
Valor devuelto
Tipo
Object | boolean | null
start returns success, txouts (outputs scanned), height, bestblock, unspents (txid, vout, scriptPubKey, desc, amount, height) and total_amount. status returns progress (percent) or null if no scan is running. abort returns true if a scan was cancelled. A full scan can take minutes.
Ejemplos de código
curl https://holy-burned-sky-litecoin-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)"
]
]
}'