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

  • Uniswap’s market share in DEX has dropped to 36%

    The DEX landscape is undergoing changes, with the market share of the veteran decentralized exchange Uniswap dropping from over 50% in October 2023 to the current 36%.

  • Exowatt completes $20 million financing, a16z participates in the investment

    Startup company Exowatt announced that it is addressing the energy needs of data centers through its ceramic battery technology. The company claims that its technology can store solar energy for months, helping to cope with the rapid growth of power consumption in data centers. The company has received $20 million in seed funding, with investors including a16z and Altman. According to reports, Exowatt has accumulated 1.2 gigawatts of orders, mainly focused on data centers and cryptocurrency mining projects in the United States.

  • Singapore police investigate Worldcoin account transactions, arrest five people

    On September 10th, Singapore's Deputy Prime Minister Heng Swee Keat announced that Singaporean police are investigating seven individuals suspected of providing Worldcoin account and token trading services. This investigation involves possible violations of the Payment Services Act of 2019, and the police have arrested five people.

  • Putin: Russia "supports" Harris, calls her smile "contagious"

    According to foreign media such as TASS and Russia's Sputnik News, Jinse Finance reported that on the afternoon of September 5th local time, Russian President Putin said at the plenary session of the Eastern Economic Forum 2024 that Russia will "support" the US Democratic Party presidential candidate and vice president Harris as recommended by the US President Biden in the upcoming US presidential election. When asked how he viewed the 2024 US election, Putin said it was the choice of the American people. The new US president will be elected by the American people, and Russia will respect the choice of the American people. Putin also said that just as Biden suggested his supporters to support Harris, "we will do the same, we will support her." The report said that Putin also joked that Harris' laughter is "expressive and infectious," which shows that "she is doing everything well." He added that this may mean that she will avoid further sanctions against Russia.

  • An ETH whale repurchased 5,153 ETH with 12.23 million USDT 20 minutes ago

    A certain high-frequency trading ETH whale monitored by on-chain analyst Yu Jin bought 5,153 ETH with 12.23 million USDT 20 minutes ago.

  • CFTC: Uniswap Labs has actively cooperated with the investigation and only needs to pay a fine of US$175,000

    The CFTC has filed a lawsuit against Uniswap Labs and reached a settlement. It was found that Uniswap Labs illegally provided leveraged or margined retail commodity transactions of digital assets through a decentralized digital asset trading protocol. Uniswap Labs was required to pay a civil penalty of $175,000 and cease violations of the Commodity Exchange Act (CEA). The CFTC acknowledged that Uniswap Labs actively cooperated with law enforcement agencies in the investigation and reduced the civil penalty.

  • Federal Reserve Beige Book: Respondents generally expect economic activity to remain stable or improve

    The Federal Reserve's Beige Book pointed out that economic activity in three regions has slightly increased, while the number of regions reporting flat or declining economic activity has increased from five in the previous quarter to nine in this quarter. Overall employment levels remain stable, although some reports indicate that companies are only filling necessary positions, reducing working hours and shifts, or reducing overall employment levels through natural attrition. However, reports of layoffs are still rare. Generally speaking, wage growth is moderate, and the growth rate of labor input costs and sales prices ranges from slight to moderate. Consumer spending has declined in most regions, while in the previous reporting period, consumer spending remained stable overall.

  • Puffpaw Completes $6 Million Seed Round with Lemniscap Ventures as Participant

    Puffpaw has announced the completion of a $6 million seed round of financing, with participation from Lemniscap Ventures. The Puffpaw project plans to launch a blockchain-enabled electronic cigarette aimed at helping users reduce nicotine intake through token incentives. The project encourages users to quit smoking by recording their smoking habits and rewarding them with tokens. Puffpaw's token economics aims to cover 30% of the cost of users' first month of using their product and provide social rewards. The project also considers possible system abuse, but the issue of users potentially reporting smoking habits dishonestly is not yet clear.

  • Cointime August 17th News Express

    1.VanEck and 21Shares Solana ETF Form 19b-4 Suspected to be Removed from CBOE Website

  • MicroStrategy is looking to sell its Class A shares to raise $2 billion to buy more Bitcoin

    MicroStrategy is seeking to sell its Class A shares to raise up to $2 billion to purchase more Bitcoin and for general corporate purposes.In regulatory filings filed with the U.S. SEC, MicroStrategy did not disclose a timetable for stock sales or how much proceeds would be used to purchase Bitcoin.Earlier in June this year, MicroStrategy announced the issuance of $500 million unsecured senior convertible notes to purchase more Bitcoin, and one day later raised the issue price to $700 million.