Consolidating UTXOs

Casa App allows you to consolidate your UTXOs easily, right within the app.

A UTXO refers to an "unspent transaction output." Another way of saying this is that a UTXO is an amount contained in a single public/private address keypair. 

Your Casa wallet, like many wallets, generates a new address with each transaction you make. If you make, for example, ten deposits to Casa App, you would have 10 UTXOs in your keyset. 

What is UTXO consolidation?

Consolidating your UTXOs simply means sending your funds from some or all of your previous transactions in a single larger transaction to another one of your own address. In other words, you are consolidating your balance from multiple transactions to a single address.

You can also accumulate UTXOs by your sending activity; each time you send a transaction from Casa App, any amount leftover in the address you're sending from is returned to your wallet in a new address as "change." These additional change addresses can contribute to your UTXO bloat. 

Why would I consolidate UTXOs? 

One reason to consolidate UTXOs periodically is a better sending experience. When sending hundreds of UTXOs at once, hardware wallet devices may struggle with signing the transaction due to its size. This means it may take longer than normal to compile transactions, or your device may even fail to sign the transaction completely.

Another reason is to save on mining fees. The more UTXOs you have, especially in smaller amounts, the higher the mining fee to send transactions from all those UTXOs will be. This is because there is more data in the transaction that the network must process to record the transaction on the blockchain. If you consolidate your UTXOs when the mining fee is low, this can save on costs.

As usage grows, it can be anticipated that the mining fee paid for on-chain transactions will increase over time. However, there will be ups and downs. Sometimes, fees will be extremely high; other times they will be very low. This can vary from month to month, day to day, and even hour to hour.

In times that the fees are low, it can make sense to consolidate your UTXOs to avoid paying far more in the future to send that same amount. It's highly recommended to consolidate UTXOs in times where fees are low. 

One place to monitor current fees is https://bitcoin.clarkmoody.com/dashboard/

When should I consolidate UTXOs?

You should consider the following when thinking about consolidating: 

  • The number of UTXOs you have
  • The size of the UTXOs
  • The current average mining fee

In general, you should think about consolidating your UTXOs if you have more than 15 addresses containing small balances (or 15 separate transactions to a single address). If each of those addresses contains a large balance (e.g., over 1 BTC each), then the concern is not as high, since you're less likely to send an amount over this in the future.

If you've ever replaced a key in Casa App using a key rotation, you have likely swept your full balance to a single address when doing so.

How do I consolidate UTXOs in Casa App?

From the normal send flow, you'll notice a "SEND FROM" option at the top of your screen.

image_123986672__8_.JPG

Once you select the "SEND FROM" dropdown menu, you'll see your UTXOs, which is another way of saying "the transactions you have received and the amount received in each one."

For lowest possible future fees, we recommend selecting "Auto-select," then using "Send Max" to send your full balance (note: the "Send max" button does not appear if "Hide balance" is toggled ON in your settings. Once you have entered the amount, select the shortcut for the same wallet you are sending from in the "Choose Recipient" screen.

If you want, Casa App does allow you to send from specific UTXOs, making it possible to consolidate only your smaller balances, and leaving the addresses that contain larger amounts alone. This is an alternative to using the "Auto-select" feature.

photo1627496451.jpeg

A couple of important points to note when consolidating your UTXOs: 

  • The fee for the consolidation transaction will be far higher than a normal fee for a smaller amount. This is because you are collecting multiple former outputs as the inputs in one transaction, which takes up more space in a block. Mining fees are per byte, so the more inputs you have, the higher the fee. The amount of data that is recorded on the blockchain for this one transaction is higher than normal, hence the higher fee. 
  • Signing may take longer than normal. Depending on the number of UTXOs, it may take over a minute or even several minutes to compile all the data to apply the signature after you've begun the signing process in the Casa send flow. Just note that you may need to have some patience with your hardware device(s) in the signing process.
  • If your hardware device does time out or fail when it's attempting to compile your transaction, try sending progressively smaller amounts of BTC (start with half your balance, as an example) until you're able to complete the send, then incrementally send your remaining balance. You can always consolidate further once those transactions are fully confirmed. 

Articles in this section

Was this article helpful?
1 out of 1 found this helpful
Share