Author

Topic: Bitcoind listunspent() & createrawtransaction() (Read 568 times)

legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
Bitcoin Core uses the oldest inputs first since it has the most confirmations and thus a higher priority, I believe there are more than this.

If I were to choose inputs, I would use the oldest inputs first to have a higher priority when I am making a free transaction. Next, I would prefer to spend the UXTOs which can be spent completely, i.e. there will be no change. This reduces the size occupied by the one additional output.
newbie
Activity: 23
Merit: 0
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.
Jump to: