Algorithms, schemes, and strategies used to determine which UTXOs are used to fund transactions.
Questions tagged [coin-selection]
41 questions
5
votes
1 answer
How does the Branch and Bound coin selection algorithm work?
Murch described in his Master thesis [PDF] an algorithm for coin selection called "Branch and Bound" or "BnB". It subsequently got implemented into multiple bitcoin wallet implementations. How does it work?

Murch
- 75,206
- 34
- 186
- 622
1
vote
2 answers
How does a wallet decide which utxo to use?
I am using a cold wallet and made a few tx two days ago. However, though what I wanted to send was a very small amount of btc, the wallet made multiple utxo of huge amounts get involved and now all my assets are locked up as the tx are…

Rich
- 11
- 1
1
vote
1 answer
why is BnB coin selection algorithm not enabled by default?
BnB is one of the best coin selection algorithms existing and its implementation is in the Bitcoin source code. But as seen from this line: https://github.com/bitcoin/bitcoin/blob/f72d80b07af8ecbb2f9df1e87344eb465186f19d/src/wallet/wallet.cpp#L2403…

3tbraden
- 239
- 1
- 10
0
votes
0 answers
Should you prefer spending smaller or bigger UTxOs first?
I'm building a bitcoin wallet and I'm not sure if it's better to spend smaller UTxOs first or bigger UTxOs?