Skip to main content
How do UTXOs work?
Updated over 7 months ago

Imagine you have a physical wallet filled with a variety of different sized bills (denominations). These various sized bills are similar to UTXO coins within a network. Each bill has a fixed amount and can only be redeemed in full. Just as each bill has a distinct value, UTXO coins come in various denominations.

Receiving these bills is akin to receiving UTXO transactions. Each bill has a unique value, just as UTXO coins do, and they serve as inputs in transactions. When making a purchase with the bills, you must carefully select the right ones to cover the total cost. For example, if your purchase totals $30, you might combine a $20 bill with a $10 bill, similar to aggregating UTXO coins to match a transaction's value.

However, bundling multiple bills (UTXOs) into a single transaction can lead to additional costs. Imagine a store offering a "buy one, get two free" deal. If you use two bills for six units of an item in one transaction, you might need to cover the cost of two units out of the six. This situation mirrors transaction fees in cryptocurrency, which increase when multiple bundled UTXOs are used, as more miners are required to secure and validate the transaction.

Once you use a bill, it becomes spent and cannot be reused. This is similar to spending UTXO coins in a transaction, where they are marked as used. If your purchase results in change, you might receive new bills (or change) in addition to any unused ones. In cryptocurrency transactions, spending a UTXO coin larger than the required amount leads to the creation of change in the form of a new UTXO coin.

Over time, your wallet may accumulate bills of varying values, which you might bundle together in a single transaction for future use. However, this bundling comes with higher fees, mirroring the increased fees for utilizing multiple UTXOs in a single transaction. Similarly, in a cryptocurrency wallet, you could hold UTXO coins of different amounts. Just as you can't divide a single bill into smaller units, you also can't split a UTXO coin. You must use the entire bill for a purchase, just like the requirement to spend the complete UTXO coin in a transaction.

In summary, the UTXO model can be likened to managing and utilizing a collection of unique, unspent bills for conducting transactions. Each bill (UTXO) represents a specific value and requires thoughtful selection and usage in transactions.

Did this answer your question?