Post
Topic
Board Bitcoin Technical Support
Bitcoind listunspent() & createrawtransaction()
by
randomuser543
on 14/05/2016, 13:48:32 UTC
Imagine I have 20 different unspent outputs, ranging in value from 0.0001 BTC - 1.0 BTC.

Now, supposing I need to create and send 0.01 BTC in a raw transaction. I'm wondering how you guys choose what unspent outputs to use.

Obviously any unspent output >= 0.01 can be used, but is there a preferred way of doing this?

listunspent -> pick an unspent output that has the most confirmations and is >= 0.01.
listunspent -> pick any unspent output as long as it's >=0.01.
etc.