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

  • ETH Falls Below $2400

    Market data shows that ETH has fallen below $2400, currently priced at $2395.62, with a 24-hour decline of 4.47%. The market is experiencing significant volatility, so please ensure proper risk management.

  • BTC Drops Below $81,000

    Market data shows that BTC has fallen below $81,000, currently priced at $80,989.9, with a 24-hour decline of 2.87%. The market is experiencing significant volatility, so please ensure proper risk management.

  • US Considers Easing Sanctions on Shadow Fleet to Lower Shipping Rates

    On October 15, a US official stated on Wednesday that the Trump administration is considering easing sanctions on vessels known as the 'shadow fleet.' These ships have previously transported oil and petroleum products from countries such as Russia, Iran, and Venezuela. This move aims to reduce the currently historically high global shipping rates. Shortly before this, President Trump had temporarily lifted sanctions on Russian diesel, a decision that drew strong criticism from Ukrainian President Zelensky, several European governments, and some Republican senators. The US official revealed that current discussions focus on whether the US will allow previously sanctioned vessels to transport 'legitimate oil.' Here, 'legitimate oil' refers to crude oil or petroleum products not subject to US sanctions, rather than oil from Russia and Iran that is under sanctions. The official stated that this move aims to facilitate the export of more refined products and crude oil from the Gulf region.

  • Dollar Index Erases All Gains Since CPI Report Release

    On October 15, the Dollar Index (DXY) slowly declined in the Asian session, completely erasing all gains since the release of the U.S. September CPI data yesterday (which had peaked with a cumulative increase of about 70 points), now reported at 102.16. The British Pound against the U.S. Dollar (GBP/USD) and the Euro against the U.S. Dollar (EUR/USD) both rose about 0.3%, currently reported at 1.3231 and 1.1197, respectively. (Jin10)

  • South Korean Stock Index Opens Down Over 5%

    On October 15, the South Korean KOSPI index fell below 6000 points, dropping 5.59% during the day. SK Hynix fell over 7%, while Samsung Electronics dropped over 6%. (Jinshi)

  • Fed's Daly: Rate Hikes May Be Necessary, But Not Urgent

    On October 15, Mary Daly, President of the San Francisco Federal Reserve, stated on Wednesday that the Fed may need to further raise short-term interest rates to curb excessive inflation. However, she also pointed out that there is no need to take such action at the Fed's meeting on October 27-28. "It is very likely that we will need to make further adjustments, but regarding the timing of those adjustments, I think we are still deliberating," Daly said. "I don’t feel there is a need to rush into a decision with limited information. I believe we have enough time."

  • BTC Falls Below $82,000

    Market data shows that BTC has fallen below $82,000, currently priced at $81,984.48, with a 24-hour decline of 2.01%. The market is experiencing significant volatility, so please ensure proper risk management.

  • BTC Drops Below $83,000

    Market data shows that BTC has fallen below $83,000, currently priced at $83,015.81, with a 24-hour decline of 0.46%. The market is experiencing significant volatility, so please ensure proper risk management.

  • ETH Surpasses $2500

    Market data shows that ETH has surpassed $2500, currently priced at $2500.4, with a 24-hour decline of 0.23%. The market is experiencing significant volatility, so please ensure proper risk management.

  • Standard Chartered Launches Cryptocurrency Trading Service in UAE for High-Net-Worth Clients

    On October 14, Standard Chartered announced the launch of a cryptocurrency trading service in the UAE aimed at high-net-worth clients, having obtained the relevant license from the Dubai Virtual Assets Regulatory Authority (VARA). Eligible clients can buy and sell BTC and ETH directly through their existing Standard Chartered accounts without the need for independent wallets or third-party trading platforms, with the bank responsible for asset custody and transaction settlement. This service is launched in partnership with Zodia Markets and is initially available only to professional investors in the UAE, with plans to expand to other markets in the future. Standard Chartered stated that this is the first direct cryptocurrency trading service offered to wealth management clients and the first of its kind by an international bank in the UAE.