|
June 24, 2013, 03:49:54 PM |
|
In your wallet you should have all the Transactions with your spendable outputs. You can use a CoinSelector to examine any of these to see if their unspent outputs are 'good' for the Transaction you are building. (With good meaning your algorithm)
If you use all of them you'll be able to spend the whole balance, less the fee, but if you start filtering them obviously you'll have a lower total. For instance if you want to 'freeze' an address like in Electrum those outputs would be unavailable for you.
I don't think many people have written custom CoinSelectors yet so you might have some experimentation to get things working..
|