<blockquote>
<p>Why does a wallet have to use multiple utxo (input&gt;output 2&gt;2 or 3&gt;2) rather than just use one and split it in two (1&gt;2)? (the aimed tx amount is smaller than each utxo)</p>
</blockquote>
<p>There's no generic reason a wallet would <em>have to</em> do that.</p>
<blockquote>
<p>Is the algorithm to select which utxo specific to each wallet or is there any general rule throughout bitcoin network?</p>
</blockquote>
<p>Specific to each wallet</p>

CC BY-SA 4.0
2021-04-22T08:25:13.463Z
2021-04-22T08:25:13.463Z
RedGrittyBrick
<p>There are various reason because wallets can use more UTXO's than needed and every wallet has its own policy on automatic coin selection.</p>
<p>In this example, Bitcoin Core do it to reduce fragmentation (to reduce UTXO's with small btc amount):
<a href="https://bitcoin.stackexchange.com/questions/103823/bitcoin-core-automatic-coin-selection">bitcoin-core automatic coin selection</a></p>
<p>In this example, Electrum do it to better preserve user privacy:<br>
<a href="https://bitcoin.stackexchange.com/questions/105234/why-does-electrum-include-seemingly-unnecessary-inputs-in-a-transaction">Why does Electrum include seemingly unnecessary inputs in a transaction?</a></p>
<p>There are multiple goal you may want achieve with a coin selection strategy and there is no one strategy that solves all problems, so if you care on which of your UTXO will be used in a transaction is better to check the transaction before broadcasting it or manually select UTXO's you will use.</p>
<p>If you provide more info on which wallet you used, we can understand what happened in your case.</p>

CC BY-SA 4.0
2021-04-22T09:04:51.353Z
2021-04-23T06:39:16.650Z
2021-04-23T06:39:16.650Z
leevancleef
<p>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 unconfirmed.</p>
<p>Questions;</p>
<ol>
<li>Why does a wallet have to use multiple utxo (input&gt;output 2&gt;2 or 3&gt;2) rather than just use one and split it in two (1&gt;2)? (the aimed tx amount is smaller than each utxo)</li>
<li>Is the algorithm to select which utxo specific to each wallet or is there any general rule throughout bitcoin network?</li>
</ol>

<coin-selection>
How does a wallet decide which utxo to use?
Rich
# How does a wallet decide which utxo to use?

(Asked by: username_0 on 2021-04-22)

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 unconfirmed.

Questions;

1. Why does a wallet have to use multiple utxo (input>output 2>2 or 3>2) rather than just use one and split it in two (1>2)? (the aimed tx amount is smaller than each utxo)
2. Is the algorithm to select which utxo specific to each wallet or is there any general rule throughout bitcoin network?

**Tags:** coin-selection


---

## 2 answers

### Answer by username_1 on 2021-04-22. Score: 1

> Why does a wallet have to use multiple utxo (input>output 2>2 or 3>2) rather than just use one and split it in two (1>2)? (the aimed tx amount is smaller than each utxo)

There's no generic reason a wallet would *have to* do that.

> Is the algorithm to select which utxo specific to each wallet or is there any general rule throughout bitcoin network?

Specific to each wallet


---

### Answer by username_2 on 2021-04-22. Score: 1

There are various reason because wallets can use more UTXO's than needed and every wallet has its own policy on automatic coin selection.

In this example, Bitcoin Core do it to reduce fragmentation (to reduce UTXO's with small btc amount):
[bitcoin-core automatic coin selection](https://bitcoin.stackexchange.com/questions/103823/bitcoin-core-automatic-coin-selection)

In this example, Electrum do it to better preserve user privacy:  
[Why does Electrum include seemingly unnecessary inputs in a transaction?](https://bitcoin.stackexchange.com/questions/105234/why-does-electrum-include-seemingly-unnecessary-inputs-in-a-transaction)

There are multiple goal you may want achieve with a coin selection strategy and there is no one strategy that solves all problems, so if you care on which of your UTXO will be used in a transaction is better to check the transaction before broadcasting it or manually select UTXO's you will use.

If you provide more info on which wallet you used, we can understand what happened in your case.


---

