A command-line alternative to using Coin Control in the graphical wallet

listunspent may be used to find which UTXOs you can spend.


In the Veil core wallet you can use Coin Control to select specific coins for spending, but you can also do this on the command line (or in the Debug Console) as follows. 


When using the command line or Terminal you will need to invoke the Command Line Interface wallet before the command, such as by

./veil-cli listunspent

or

veil-cli.exe listunspent


In the Debug Console you may simply type: 

listunspent


So that you can search the output better, you may copy and paste the `listunspent` output into a text editor. Here is an example (below is a testnet example only, so the address begins with tv1 instead of bv1) found by searching in the text editor for the particular basecoin address to find suitable utxos. 

You may also search for zerocoins by searching for:     "type": "zerocoinmint",
Stealth (CT) transactions by searching for: "type": "ct",
or for RingCT transactions by searching for: "type": "ringct",
The search “ringct” or "zerocoin" alone should also suffice.


You will see that a transaction record begins with the opening curly bracket and ends with the closing bracket and comma {like these}, while the entire list begins and ends with square brackets [like these]. This type of data structure is referred to as JSON (JavaScript Object Notation), which is encountered frequently in data outputs.


  {
    "address": "tv1qw9qgnt7ampwhfetl2t9jh9kfqvxuhvrgaaflff",
    "category": "receive",
    "amount": 200.00000000,
    "label": "",
    "vout": 1,
    "confirmations": 8,
    "blockhash": "bc69e9ba3629f8117bfafeaa4443945ffedbda5aac31ab31d12293bba2194701",
    "blockindex": 3,
    "blocktime": 1596540885,
    "txid": "446020255e1a258a43368cfd5393586f216b7fd7b6d601aacea16979217b949c",
    "walletconflicts": [
    ],
    "time": 1596540759,
    "timereceived": 1596540759,
    "computetime": 21494,
    "bip125-replaceable": "no"
  },
  {
    "address": "tv1qw9qgnt7ampwhfetl2t9jh9kfqvxuhvrgaaflff",
    "category": "receive",
    "amount": 200.00000000,
    "label": "",
    "vout": 1,
    "confirmations": 8,
    "blockhash": "bc69e9ba3629f8117bfafeaa4443945ffedbda5aac31ab31d12293bba2194701",
    "blockindex": 2,
    "blocktime": 1596540885,
    "txid": "e84bb27435cea68331e8c557d0fd1ab1a429b2a10727d538663fd0a3ecf5206f",
    "walletconflicts": [
    ],
    "time": 1596540759,
    "timereceived": 1596540759,
    "computetime": 21494,
    "bip125-replaceable": "no"
  },
  {
    "address": "tv1qw9qgnt7ampwhfetl2t9jh9kfqvxuhvrgaaflff",
    "category": "receive",
    "amount": 200.00000000,
    "label": "",
    "vout": 1,
    "confirmations": 8,
    "blockhash": "bc69e9ba3629f8117bfafeaa4443945ffedbda5aac31ab31d12293bba2194701",
    "blockindex": 5,
    "blocktime": 1596540885,
    "txid": "8924386b290f7340d1a21e8aec771d476cdbea3324134a8852b88974988d87d6",
    "walletconflicts": [
    ],
    "time": 1596540759,
    "timereceived": 1596540759,
    "computetime": 21494,
    "bip125-replaceable": "no"
  },
  {
    "address": "tv1qw9qgnt7ampwhfetl2t9jh9kfqvxuhvrgaaflff",
    "category": "receive",
    "amount": 200.00000000,
    "label": "",
    "vout": 1,
    "confirmations": 8,
    "blockhash": "bc69e9ba3629f8117bfafeaa4443945ffedbda5aac31ab31d12293bba2194701",
    "blockindex": 6,
    "blocktime": 1596540885,
    "txid": "dd89d58d0f62ac8402b183cbeff5899ea75ad6bf05157f491b21f214e90a83fb",
    "walletconflicts": [
    ],
    "time": 1596540760,
    "timereceived": 1596540760,
    "computetime": 21494,
    "bip125-replaceable": "no"
  },
  {
    "address": "tv1qw9qgnt7ampwhfetl2t9jh9kfqvxuhvrgaaflff",
    "category": "receive",
    "amount": 200.00000000,
    "label": "",
    "vout": 1,
    "confirmations": 8,
    "blockhash": "bc69e9ba3629f8117bfafeaa4443945ffedbda5aac31ab31d12293bba2194701",
    "blockindex": 4,
    "blocktime": 1596540885,
    "txid": "e2ea6c9c64ad5f0de301392c46f66bd303d585ad2facaea390013efcb1b23aa8",
    "walletconflicts": [
    ],
    "time": 1596540760,
    "timereceived": 1596540760,
    "computetime": 21494,
    "bip125-replaceable": "no"
  },

Your selected unspent outputs may be used in raw transactions such as a multisig transaction (using createpsbt) or with createrawbasecointransaction, createrawtransaction, or signrawtransactionwithkey, or if spending zerocoins you will use the "serialhash" in the "spendzerocoinmints" command.


See also: Veil multisig, how to spend multisig funds