Cointime

Download App
iOS & Android

Economically Unspendable Bitcoin UTXOs

Repost from Jameson Lopp DEC 16, 2023 : “Economically Unspendable Bitcoin UTXOs” The full report and all related findings are available on the official website of Jameson Lopp blog.

UTXO management guidance for avoiding footguns that can cause problems during times of high transaction fees.

Given the recent rise in transaction fees, it seems timely to introduce a somewhat new concept when it comes to UTXO management - the economically unspendable UTXO.

What is a UTXO? An Unspent Transaction Output, or in layman's terms: a deposit that has been made into your wallet. Every time you receive a bitcoin deposit, a new UTXO is created that will later need to be spent.

The Bitcoin network has always grappled with the concept of "dust" which is the creation of UTXOs that have basically no value but are undesirable because they increase the size of the global UTXO set, which is preferable to keep small enough that it can be stored in RAM. I've written about the history of dust previously:

A History of Bitcoin Transaction Dust & Spam StormsA historical analysis of spam attacks conducted on the Bitcoin network.

But I'm not referring to dust when I say "Economically Unspendable UTXO" - this is a level higher on the UTXO value scale. My definition is as follows:

An economically unspendable UTXO is a UTXO that costs more to spend than it is worth.

Of course, this is a tricky definition because the cost to spend a UTXO can fluctuate wildly over time based upon market conditions (demand for block space.)

Why Should You Care?

Since Bitcoin transaction fees are based not upon the value being transacted, but upon the data size of the transaction, it can become very important to ensure that your wallet balance is NOT composed of many low value UTXOs.

A recurring pattern I've seen while working on Bitcoin wallets for many years:

  1. Someone starts using Bitcoin during a bear market when transaction fees are dirt cheap. They may get into mining, dollar cost averaging, stacking, etc. This activity results in daily or weekly deposits into their wallet.
  2. They keep stacking regularly through the bear market, then during the bull market they decide to spend some of their funds.
  3. Upon attempting to spend funds, they are aghast at the recommended transaction fee, and in some cases the inability to even spend their entire balance in one transaction.

As such, the user becomes quite frustrated because the balance their wallet has been displaying to them IS NOT THEIR ACTUAL SPENDABLE BALANCE.

This situation is completely preventable, but it requires people to understand that every time you receive an on-chain deposit, there will be a future cost to spend it.

Introducing the Economically Unspendable UTXO Calculator

To this end, I'm releasing a new tool for calculating the cost of spending a given UTXO. You can find it at https://jlopp.github.io/unspendable-utxo-calculator/

It is technical in nature - you need to know what script type your particular wallet is using - but now you can get a better idea of how to plan ahead for high fee environments so that you don't find yourself with a wallet full of UTXOs that are worth less than it would cost you to spend!

How does it work? It's quite simple; after inputting the UTXO's attributes (script type and number of keys) then you'll see a line chart. Suffiice to say that anything underneath the line is in danger of becoming economically unspendable at the given fee rate. So, if we look at a 3-of-5 P2WSH UTXO, for example, we can see that at a fee rate of 300 satoshis per virtual byte it will cost around 45,000 satoshis to spend a single UTXO. Thus it's pretty poor planning to receive deposits smaller than that amount.

Bitcoin's block space is scarce - your future self will thank you for using it sparingly!

Comments

All Comments

Recommended for you

  • Circle minted 500 million USDC on the Solana network.

    according to Onchain Lens monitoring, Circle has minted 500 million USDC on the Solana network. Since October 11, Circle has issued a total of 18 billion USDC on the Solana network.

  • Sources familiar with the matter: JPMorgan Chase is considering offering cryptocurrency trading services to institutional clients.

    according to Bloomberg, as major global banks deepen their involvement in the cryptocurrency asset class, JPMorgan Chase is considering offering cryptocurrency trading services to its institutional clients. A knowledgeable source revealed that JPMorgan is evaluating what products and services its market division can offer to expand its business in the cryptocurrency field. The source stated that these products and services may include spot and derivatives trading.

  • Federal Reserve Governor Milan: We believe that the policy rate will eventually be lowered.

    Federal Reserve Board member Mylan stated that due to the US government shutdown, there were some anomalies in last week's inflation data; he believes that the US will not experience an economic recession in the near term, but if policies are not adjusted, the US will face an increasing risk of economic recession. We believe that policy interest rates will eventually be lowered.

  • BlackRock deposited 819.39 BTC, worth approximately $73.72 million, into Coinbase.

     according to Onchain Lens monitoring, BlackRock deposited 819.39 BTC into Coinbase, worth approximately 73.72 million USD.

  • Ghana passes law legalizing the use of cryptocurrency

    according to Bloomberg, the Ghanaian Parliament has approved a cryptocurrency legalization bill aimed at addressing the expanding use of cryptocurrencies in the country but the lack of regulation. According to Johnson Asiamah, Governor of the Bank of Ghana, the newly passed Virtual Asset Service Providers Act will facilitate the licensing of crypto platforms and the regulation of related activities.

  • CryptoQuant: Bitcoin network activity cools, market shows clear bearish signs.

    CryptoQuant published an analysis stating that the Bitcoin market continues to be in a bear market state, with multiple network indicators showing a significant cooling of activity. Data shows that the 30-day moving average of Bitcoin is below the 365-day moving average (-0.52%), and the bull-bear cycle indicator confirms the current bear market pattern. The number of network transactions has dropped from about 460,000 to about 438,000, fees have decreased from $233,000 to $230,000, and highly active addresses have reduced from 43.3K to 41.5K, all indicating reduced speculative activity and that the market is in a defensive phase.

  • ETH falls below $3,000

    the market shows that ETH has fallen below $3000, currently at $2999.5, with a 24-hour increase of 0.86%. The market is highly volatile, please manage your risks accordingly.

  • BTC breaks through $89,000

    market shows BTC breaking through $89,000, currently at $89,014.5, with a 24-hour increase of 0.85%. The market is highly volatile, please manage your risk accordingly.

  • F2Pool co-founder: Last year, 500 bitcoins were transferred in to confirm whether the private key had been leaked; hackers took 490 bitcoins.

    regarding the community's heated discussion about the 50 million USDT phishing attack, F2Pool co-founder Wang Chun tweeted, "Last year, I suspected that my private key was leaked. To confirm whether the address was really hacked, I transferred 500 bitcoins to that address. To my surprise, the hacker 'generously' only took 490 bitcoins, leaving me 10 bitcoins, enough for me to make a living."