listunspent
Wallet
Summary
Returns array of unspent transaction outputs
Description
Returns array of unspent transaction outputs with between minconf and maxconf (inclusive) confirmations. Optionally filter to only include txouts paid to specified addresses.
Arguments
minconf(NUM): The minimum confirmations to filtermaxconf(NUM): The maximum confirmations to filteraddresses(ARR): The qbit addresses to filteraddress(STR): qbit addressinclude_unsafe(BOOL): Include outputs that are not safe to spend See description of "safe" attribute below.query_options(OBJ_NAMED_PARAMS): No description.minimumAmount(AMOUNT): Minimum value of each UTXO in QBTmaximumAmount(AMOUNT): Maximum value of each UTXO in QBTmaximumCount(NUM): Maximum number of UTXOsminimumSumAmount(AMOUNT): Minimum sum value of all UTXOs in QBTinclude_immature_coinbase(BOOL): Include immature coinbase UTXOs
Results
value(ARR): No description.value(OBJ): No description.txid(STR_HEX): the transaction idvout(NUM): the vout valueaddress(STR, optional): the qbit addresslabel(STR, optional): The associated label, or "" for the default labelscriptPubKey(STR): the output scriptamount(STR_AMOUNT): the transaction output amount in QBTconfirmations(NUM): The number of confirmationsancestorcount(NUM, optional): The number of in-mempool ancestor transactions, including this one (if transaction is in the mempool)ancestorsize(NUM, optional): The virtual transaction size of in-mempool ancestors, including this one (if transaction is in the mempool)ancestorfees(STR_AMOUNT, optional): The total fees of in-mempool ancestors (including this one) with fee deltas used for mining priority in sat (if transaction is in the mempool)redeemScript(STR_HEX, optional): The redeem script if the output script is P2SHwitnessScript(STR, optional): witness script if the output script is P2WSH or P2SH-P2WSHspendable(BOOL): (DEPRECATED) Always truesolvable(BOOL): Whether we know how to spend this output, ignoring the lack of keysreused(BOOL, optional): (only present if avoid_reuse is set) Whether this output is reused/dirty (sent to an address that was previously spent from)desc(STR, optional): (only when solvable) A descriptor for spending this outputparent_descs(ARR): List of parent descriptors for the output script of this coin.desc(STR): The descriptor string.safe(BOOL): Whether this output is considered safe to spend. Unconfirmed transactions from outside keys and unconfirmed replacement transactions are considered unsafe and are not eligible for spending by fundrawtransaction and sendtoaddress.
Examples
qbit-cli listunspent
qbit-cli listunspent 6 9999999 "[\"qb1zqqqsyqcyq5rqwzqfpg9scrgwpugpzysnzs23v9ccrydpk8qarc0sjq57mw\",\"qb1zyqsjygeyy5nzw2pf9g4jctfw9ucrzv3nxs6nvdec8yark0pa8clsj9cmtx\"]"
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "listunspent", "params": [6, 9999999 "[\"qb1zqqqsyqcyq5rqwzqfpg9scrgwpugpzysnzs23v9ccrydpk8qarc0sjq57mw\",\"qb1zyqsjygeyy5nzw2pf9g4jctfw9ucrzv3nxs6nvdec8yark0pa8clsj9cmtx\"]"]}' -H 'content-type: application/json' http://127.0.0.1:8352/
qbit-cli listunspent 6 9999999 '[]' true '{ "minimumAmount": 0.005 }'
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "listunspent", "params": [6, 9999999, [] , true, { "minimumAmount": 0.005 } ]}' -H 'content-type: application/json' http://127.0.0.1:8352/