scantxoutset
scantxoutset
EXPERIMENTAL warning: this call may be removed or changed in future releases.
Scans the unspent transaction output set for entries that match certain output descriptors. Examples of output descriptors are: addr(
) Outputs whose scriptPubKey corresponds to the specified address (does not include P2PK) raw(In the above,
Arguments:
- “action” (string, required) The action to execute “start” for starting a scan “abort” for aborting the current scan (returns true when abort was successful) “status” for progress report (in %) of the current scan
- “scanobjects” (array, required) Array of scan objects [ Every scan object is either a string descriptor or an object: “descriptor”, (string, optional) An output descriptor { (object, optional) An object with output descriptor and metadata “desc”: “descriptor”, (string, required) An output descriptor “range”: n, (numeric, optional) Up to what child index HD chains should be explored (default: 1000) }, … ]
Result: { “unspents”: [ { “txid” : “transactionid”, (string) The transaction id “vout”: n, (numeric) the vout value “scriptPubKey” : “script”, (string) the script key “amount” : x.xxx, (numeric) The total amount in BTC of the unspent output “height” : n, (numeric) Height of the unspent transaction output } ,…], “total_amount” : x.xxx, (numeric) The total amount of all found unspent outputs in BTC ]