What Is A Bitcoin Transaction?
A Bitcoin transaction is the transfer of bitcoin from one address to another address or when new bitcoin is created. Transactions can also be the transfer of bitcoin from multiple sending addresses to multiple receiving addresses.
Coinbase Transactions
The first transaction in each block is a special kind of transaction to compensate bitcoin miners for the costs associated with operating their mining hardware and maintaining the security of the network. For their work, miners receive 2 forms of compensation for each block they mine called the block rewardWhat Is The Block Reward? The block reward is how Bitcoin miners are compensated for mining and adding blocks of transactions to the blockchain. The block reward is made up....
The block reward is made up of 2 parts.
– Newly Generated Bitcoin
– Transaction Fees (Miner Fees)
Since these transactions are how the base of 21,000,000 bitcoin are created, they have been appropriately named coinbase transactions.
All bitcoin comes into existence via coinbase transactions.
IMPORTANT: Coinbase transactions are not to be confused with the San Francisco based crypto exchange “Coinbase”. Unfortunately, this may cause some confusion for new users.
Standard Bitcoin Transactions
A standard bitcoin transaction is when bitcoin is transferred from one address to another.
Each standard transaction contains 4 pieces of essential information for understanding what addresses sent bitcoin, what addresses received bitcoin, how much was sent, and the transaction feeWhat Is A Transaction Fee? A Bitcoin Transaction Fee, commonly known as a miner fee, is the amount of bitcoin that a sender attaches to their transaction to incentivize Bitcoin... to send it.
– TXID: Transaction IDWhat Is A Transaction ID? A bitcoin transaction ID, also known as a TXID or transaction hash, is a unique 64-character string that identifies a specific transaction on the blockchain....
– 1 or more Transaction Input
– 1 or more Transaction Output
– Transaction Fee (Miner FeeWhat Is A Transaction Fee? A Bitcoin Transaction Fee, commonly known as a miner fee, is the amount of bitcoin that a sender attaches to their transaction to incentivize Bitcoin...)
TXID: Transaction ID
TXIDWhat Is A Transaction ID? A bitcoin transaction ID, also known as a TXID or transaction hash, is a unique 64-character string that identifies a specific transaction on the blockchain.... is short for Transaction ID or Transaction HashWhat Is A Transaction ID? A bitcoin transaction ID, also known as a TXID or transaction hash, is a unique 64-character string that identifies a specific transaction on the blockchain.... and is a unique 64 digit ID for each and every transaction on the BlockchainWhat Is The Blockchain? The blockchain is the public record of bitcoin transactions, which are organized into blocks that are all chronologically linked to one another. Because every block is....
In order to look up the details of a transaction using a block explorerWhat Is A Block Explorer? A block explorer is a browser for viewing or "exploring" all of the information on the bitcoin blockchain. With a block explorer, you can view..., you’ll need a TXIDWhat Is A Transaction ID? A bitcoin transaction ID, also known as a TXID or transaction hash, is a unique 64-character string that identifies a specific transaction on the blockchain.....
Here’s what a TXID looks like: 1f33f1e075057e0b84de03d2ef0464b90c59a4291340fb81134726065f41c672
Instead of only using a base-10 number set (0-9), TXIDs use a base-16 number set (0-9 and a-f) called Hexadecimal or Hex for short.
Inputs & Outputs
Every bitcoin transaction is made up of inputsWhat Are Inputs & Outputs? Every bitcoin transaction is made up of inputs & outputs. Inputs are bitcoin being sent and outputs are bitcoin being received. Until bitcoin is sent... and outputsWhat Are Inputs & Outputs? Every bitcoin transaction is made up of inputs & outputs. Inputs are bitcoin being sent and outputs are bitcoin being received. Until bitcoin is sent.... The inputs are the bitcoin that is being sent and the outputs are the bitcoin being received.
Depending on what sort of transaction you are creating, there can be a number of different combinations of inputs and outputs. Some transactions may only need a single input and a single output while larger transactions (such as transactions sent from bitcoin exchangesUnderstanding Bitcoin Exchanges Bitcoin has proven itself to be one of the fastest horses in the financial arena. To keep up with the rising demand, countless Bitcoin exchanges have popped...) can have hundreds of inputs and outputs.
If you look at any given transaction on a block explorer, the sum of all of the inputs will always equal the sum of all of the outputs plus the miner fee.
Every Bitcoin Transaction: All Inputs = All Outputs + Miner Fee
Transaction Fee
A bitcoin transaction fee, commonly known as a miner fee, is the amount of bitcoin that is attached to a transaction in order to incentivize bitcoin miners to add the transaction to the blockchain.
This is an important part of the financial incentive for miners to continue mining and keep the network secure. The greater the miner fee, the greater the incentive for miners to add it to the blockchain. The smaller the miner fee, the smaller the incentive. Some users prefer to have transactions added as soon as possible, while others are content to wait hours, days, or even weeks.
In short, transaction fees are how users are able to prioritize the importance of their transactions. If you want your transaction to be added to the blockchain as soon as possible, you should use a larger fee. If you aren’t in a hurry, sending with a smaller miner fee is fine and it will confirm as soon as the transactions with larger miner fees are confirmed.
If you sent a transaction with a low fee and you would like to increase it, you can use one of the fee bumpingWhat Is Fee Bumping? Fee Bumping is a method of increasing the miner fee of a transaction after it has been sent but has not yet been confirmed and added... methods to increase the likelihood that a miner will add it to the next block.
Understanding transaction fees is key to understanding how Bitcoin works.
Transaction Confirmations
When a bitcoin transaction is sent, it is classified as “unconfirmed” or “pending,” along with every other unconfirmed transaction in a place called the mempoolWhat Is The MemPool? The MemPool, short for memory pool, is a short-term database of unconfirmed transactions that is kept by each node. Although the term "MemPool" is frequently used,.... When miners add transactions to the blockchain, they typically select the transactions with the highest fee rateWhat Is The Fee Rate? The fee rate for a Bitcoin transaction is the number of sats a sender is willing to pay for each byte of on-chain transaction data..... As soon as a miner adds a transaction to the blockchain, it has 1 confirmation.
Once a transaction receives its first confirmation, it will continue to receive additional confirmations as time goes on (approximately 1 every 10 minutes). As the number of confirmations for a particular transaction increases, the degree of security associated with that transaction also increases.
For smaller transactions, 1 confirmation is typically considered to be secure but for larger transactions, it’s best practice to wait for at least 6 confirmations.
Any transaction with 6 or more transactions is often deemed “immutable,” since it would take an enormous amount of energy for a group of miners to reorganize the blockchain to “delete” such a transaction.
In the event that a transaction is taking too long to confirm, either the sender or receiver is able to use one of the fee bumping methods to increase the transaction fee in an attempt to incentivize miners to confirm the transaction sooner.
Looking Up Your Transactions
If you ever want to look up any information about your transactions, you can use a block explorer. Not only can you see whether or not your transaction is confirmed, you can also view other information such as the inputs, outputs, which block your transaction is in, the miner fee, the current fee rate, and so much more.