<p>You could simulate a wallet that did not perform the consolidations but kept the original UTXOs and see what you would have spent on fees sending and receiving the same payments at the same feerates that your actual wallet performed. Since there is an element of randomness to some wallet’s coin selection methods, you may want to repeat this random walk multiple times.</p>
<p>I think it would be difficult to more accurately measure the “what-if” otherwise, since the consolidation transactions inherently change the outcome of the subsequent wallet history.</p>
<blockquote>
<p>However, this is under the assumption that your coin selection strategy will only spend low value UTXO at a high fee rate (which isn't optimal to begin with).</p>
</blockquote>
<p>More precisely the benefit of consolidating is based on the expectation that you will need to spend multiple instead of a single UTXO at a high feerate, and consolidating them will provide you with sufficient funds in a single UTXO so you can spend the many UTXOs at low feerates and a single UTXO at high feerates which overall costs less than the multiple UTXOs at high feerates.</p>
<p>If you actually end up being able to create transactions at a low feerate over a longer period of time, you can save fees by just spending the UTXOs directly and leveraging the variety of amounts to create changeless transactions.</p>
<p>One problem that some users looking into consolidation overlook is that excessive consolidation can actually increase your cost. When I have previously implemented consolidation strategies for enterprise wallets, I recommended that they only consolidate UTXOs when they had accumulated more than e.g. 200 that were older than 2 weeks that were below their usual spending amounts. I wrote about some of our experiences in this <a href="https://blog.bitgo.com/utxo-management-for-enterprise-wallets-5357dad08dd1?gi=c257e5460c57" rel="nofollow noreferrer">blog post</a>.</p>

CC BY-SA 4.0
2023-05-02T14:26:00.227Z
2023-05-02T14:26:00.227Z
Murch
<p>One of the techniques to save fees is doing consolidations. According to <a href="https://en.bitcoin.it/wiki/Techniques_to_reduce_transaction_fees" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Techniques_to_reduce_transaction_fees</a>: &quot;if your usual target feerate during normal-priced fee periods is 100 nanobitcoins per vbyte and the current feerate is 10 nanobitcoins per vbyte, you could save up to almost 90% on fees by consolidating now before you next need to spend some of those inputs.&quot;</p>
<p>However, this is under the assumption that your coin selection strategy will only spend low value UTXO at a high fee rate (which isn't optimal to begin with).</p>
<p>It seems hard to measure the the cost savings because it's hard to predict <em>when</em> the UTXO would have been spent in the future. One way to measure the &quot;savings&quot; is by comparing spending the UTXOs at the time of consolidation vs at the time of spending the consolidation transaction. One can measure if the consolidation transaction was profitable. However, this metric seems misleading because those same UTXO's could have been spent sometime later under a different fee rate.</p>
<p>Is it impossible to have an accurate measurement of fee savings from doing consolidation transactions?</p>

CC BY-SA 4.0
2023-05-02T04:14:29.533Z
Ideally if the fee rate is always 1 sat/vB then that would be the optimal solution.
coinselector23
CC BY-SA 4.0
2023-05-02T14:27:45.853Z
Well, unfortunately, that’s not something we can expect lately
Murch
<transaction-fees><consolidation>
How can I measure cost savings from consolidation transactions?
coinselector23
# How can I measure cost savings from consolidation transactions?

(Asked by: username_0 on 2023-05-02)

One of the techniques to save fees is doing consolidations. According to <https://en.bitcoin.it/wiki/Techniques_to_reduce_transaction_fees>: "if your usual target feerate during normal-priced fee periods is 100 nanobitcoins per vbyte and the current feerate is 10 nanobitcoins per vbyte, you could save up to almost 90% on fees by consolidating now before you next need to spend some of those inputs."

However, this is under the assumption that your coin selection strategy will only spend low value UTXO at a high fee rate (which isn't optimal to begin with).

It seems hard to measure the the cost savings because it's hard to predict *when* the UTXO would have been spent in the future. One way to measure the "savings" is by comparing spending the UTXOs at the time of consolidation vs at the time of spending the consolidation transaction. One can measure if the consolidation transaction was profitable. However, this metric seems misleading because those same UTXO's could have been spent sometime later under a different fee rate.

Is it impossible to have an accurate measurement of fee savings from doing consolidation transactions?

**Tags:** transaction-fees, consolidation

> **Comments:**
> **username_0**: Ideally if the fee rate is always 1 sat/vB then that would be the optimal solution.  
> **username_1**: Well, unfortunately, that’s not something we can expect lately  

---

## 1 answers

### Answer by username_1 on 2023-05-02. Score: 4 | Accepted answer

You could simulate a wallet that did not perform the consolidations but kept the original UTXOs and see what you would have spent on fees sending and receiving the same payments at the same feerates that your actual wallet performed. Since there is an element of randomness to some wallet’s coin selection methods, you may want to repeat this random walk multiple times.

I think it would be difficult to more accurately measure the “what-if” otherwise, since the consolidation transactions inherently change the outcome of the subsequent wallet history.

> However, this is under the assumption that your coin selection strategy will only spend low value UTXO at a high fee rate (which isn't optimal to begin with).

More precisely the benefit of consolidating is based on the expectation that you will need to spend multiple instead of a single UTXO at a high feerate, and consolidating them will provide you with sufficient funds in a single UTXO so you can spend the many UTXOs at low feerates and a single UTXO at high feerates which overall costs less than the multiple UTXOs at high feerates.

If you actually end up being able to create transactions at a low feerate over a longer period of time, you can save fees by just spending the UTXOs directly and leveraging the variety of amounts to create changeless transactions.

One problem that some users looking into consolidation overlook is that excessive consolidation can actually increase your cost. When I have previously implemented consolidation strategies for enterprise wallets, I recommended that they only consolidate UTXOs when they had accumulated more than e.g. 200 that were older than 2 weeks that were below their usual spending amounts. I wrote about some of our experiences in this [blog post](https://blog.bitgo.com/utxo-management-for-enterprise-wallets-5357dad08dd1?gi=c257e5460c57).


---

