TXID, Outputs, Inputs, Transaction Fees, UTXOs - what do all these terms mean?
In this thread we will dissect a real bitcoin transaction and I'll explain its main components
To expand your background knowledge, read on 👇
blockstream.info/tx/3773f1874b3…
Somebody spent 0.69561192 BTC
One address received 0.2862 BTC
Another address received 0.40861192 BTC
0.69561192 - (0.2862 + 0.40861192) = 0.0008
Hmm.. what happened here, was it a mistake?
This leftover amount is what's known as the Transaction Fee, and it's a bribe paid to the miners to convince them to mine (finalize) the transaction
Higher fee rate = higher incentive for a miner to finalize your transaction
But let's dive a little further and explain where that Input came from.
You see, when an Output is created, it becomes what we call a UTXO (or Unspent Transaction Output)
These are the funds you have available to Spend at any given moment
To spend a UTXO, you put it as an Input to a transaction.
Each output can only be spent once!
But here's a question for you...
Say I only own a single UTXO, worth 0.69561192 BTC, but I want to send my friend @SahilBloom 0.2862 BTC?
Imagine I have a single 10 dollar bill in my wallet, but I want to buy a 5 dollar coffee?
Easy, I give the cashier my 10 dollar bill, and they give me back a 5 dollar bill as Change.
For me to pay @SahilBloom 0.2862 using my 0.69561192 UTXO, I'll create a transaction with two Outputs:
One for 0.2862 to Sahil
And one that gives the remaining 0.40861192 change back to me
Although this wasn't actually my transaction - so I can't say for sure which output was the payment and which was the change, but you get the idea.
We learned about TXIDs, Outputs, Inputs, Fees, UTXOs, Change, and the basic concept of how transactions are linked (Outputs are UTXOs until they become Inputs).
I hope this was a helpful summary of the basics. Let me know in the comments if you have any questions!