scantxoutset JSON-RPC command
scantxoutset "action" [scanobjects,...]
``` 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
1. "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
2. scanobjects (json array, required) Array of scan objects
Every scan object is either a string descriptor or an object:
[
"descriptor", (string) An output descriptor
{ (json object) An object with output descriptor and metadata
"desc": "str", (string, required) An output descriptor
"range": n, (numeric, optional, default=1000) Up to what child index HD chains should be explored
},
...
]
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 BCH of the unspent output
"height" : n, (numeric) Height of the unspent transaction output
"tokenData" : { (json object optional)
"category" : "hex", (string) token id
"amount" : "xxx", (string) fungible amount (is a string to support >53-bit amounts)
"nft" : { (json object optional)
"capability" : "xxx", (string) one of "none", "mutable", "minting"
"commitment" : "hex" (string) NFT commitment
}
}
}
,...],
"total_amount" : x.xxx, (numeric) The total amount of all found unspent outputs in BCH
"token_total_amount" : {...}, (json object optional) The total amount of each fungible token, by category id
]
Bitcoin Cash Node Daemon version v29.0.1-71febb2
Documentation on docs.bitcoincashnode.org reflects the current master branch in Git, and may include API changes that are not yet present in the latest release.