Hello there! Hope you are enjoying the crypto revolution with the CoinSutra community.
Today we are going to discuss one of the core concepts of Bitcoin transactions that will keep you ahead of others in the crypto race – the Unspent Transaction Outputs aka UTXOs.
In the early Bitcoin days, this concept was considered pivotal. So much so that if you did not understand UTXOs correctly, you could have made a transaction you never intended to in the first place.
However, it is good to know the details which enable you to take care of your Bitcoins in a better way and also understand the jargon which is often mentioned while discussing Bitcoin fees.
Let’s dive into it right away.
What Is A UTXO?
A Bitcoin transaction is comprised of inputs and outputs.
Only Unspent Transaction Outputs, or UTXOs, can be used to be spent as an input in another transaction whereas spent outputs are already spent hence can’t be spent again. (Difficult to grasp? Stay with me.)
You always need a UTXO or an unspent transaction output to make a transaction. If you don’t have an unspent transaction output, it simply means you don’t have any Bitcoin.
This mainly happens due to the protocol rules which Satoshi Nakamoto had defined in Bitcoin to prevent double spending. Also, there is no way in the bitcoin world to spend partial amounts while completing a transaction.
To break it down further: If you have a balance of 3 BTC on ‘XYZ’ public address and you have to pay 0.5 BTC to a merchant, you cannot simply send 0.5 out of your ‘XYZ’ address and keep the rest 2.5 BTC intact.
Instead, you need to spend whole 3 BTC out of which you will designate 0.5 BTC to the merchant while providing a signature and sending the rest 2.5 BTC back to yourself on an address that you control. This is called sending the change to the change address.
You might be wondering that you never make two transactions in your wallet when you pay someone. Yes, that’s true because modern wallets take care of everything behind the scenes.
In short, when a bitcoin transaction takes place, there are two UTXOs created: one that is the actual coins sent to the recipient, and one that is the change output, which goes back to the sender’s wallet.
For more clarity, see the transaction above series which is probably done by the same person.
Through transactions 1 to 4, you will notice that all outputs on the right-hand side are a pair of (Unspent/Spent) amounts and in transaction #5 both the outputs are unspent amounts.
If you observe closely, in transactions 1 through 4, the user is sending 0.8 BTC repeatedly to another address starting from a net balance of 11.852428 BTC in the input of transaction #1. In all the 4 transactions, the remaining balance after the deduction of 0.8 BTC, plus the transaction fee, is returning to a new address, which is called the change address. These change addresses are nowadays generated automatically by HD wallets, much to your relief.
And from these change addresses, in all the 4 transactions from #2 through #5, new transactions are initiated which is why they are labeled as (spent) outputs respectively (in number #1-#4).
In the end, the original address that started with a net balance of 11.852428 BTC is now reduced to 7.838868 BTC after completing transactions of 0.8 BTC five times. The output of 7.838868 BTC is the UTXO of the sender or output which is unspent yet and the other 0.8 BTC is the UTXO of the recipient. Notice, on the right-hand side, the 5th transaction outputs for final balance and UTXOs).
Lastly, if you notice, the public address of initial balance and the final one is different. This is why many people get confused when they see that their wallet address changes every time they make a transaction.
This happens because HD wallets automatically send the change to a different change address so that you can secure your privacy. So next time you see you address changing, you know it is happening because you are receiving new UTXOs on a new change address!
In earlier Bitcoin days, when there were no deterministic wallets, BTC wallets used to ask for a change address if you were not the spending the whole balance in the initiated transaction, failing which could result in your change being sent to addresses that you did not control resulting in loss of your funds.
It is safe to say that you now understand how UTXOs or the change process is managed in Bitcoin transactions!
Hope you liked this article and found it interesting. Please don’t forget to share this with your friends & family on Twitter and Facebook.
Here are a few articles that are currently popular on CoinSutra:
- How To Convert Bitcoin (BTC) To Ripple (XRP) Quickly
- How To Sign A Message With Ledger Nano S Wallet?
- Best Bitcoin & Ethereum IRA Companies [2018 Edition]
- Where Do I Spend Bitcoin? Here Are The Top 5 Ways To Get Started.
Harsh Agrawal is the Crypto exchanges and bots experts for CoinSutra. He founded CoinSutra in 2016, and one of the industry’s most regarded professional blogger in fintech space.
An award-winning blogger with a track record of 10+ years. He has a background in both finance and technology and holds professional qualifications in Information technology.
An international speaker and author who loves blockchain and crypto world.
After discovering about decentralized finance and with his background of Information technology, he made his mission to help others learn and get started with it via CoinSutra.
Join us via email and social channels to get the latest updates straight to your inbox.