In the world of Bitcoin, every block added to the blockchain begins with a special transaction known as the coinbase transaction. This unique entry serves as the foundation of each block and enables miners to claim the block reward—a combination of newly minted bitcoins (block subsidy) and transaction fees. Unlike regular transactions, the coinbase transaction doesn’t transfer existing funds; instead, it creates new bitcoins, making it the origin point of all Bitcoin in circulation.
Understanding how this mechanism works is essential for grasping Bitcoin’s monetary policy, mining incentives, and network security.
What Is a Coinbase Transaction?
A coinbase transaction is the first transaction recorded in a newly mined block. It's constructed by the miner who successfully solves the cryptographic puzzle required to add a block to the blockchain. Since this transaction introduces new bitcoins into the system, it has no traditional inputs—it features a single, blank input with a zeroed-out TXID and maximum VOUT value.
👉 Discover how blockchain rewards shape crypto economics today.
This structure distinguishes it from all other transactions on the network. Its outputs represent the total block reward, which includes:
- Block subsidy: The fixed number of new bitcoins generated per block (halving approximately every four years).
- Transaction fees: The sum of fees paid by users whose transactions are included in the same block.
Because the coinbase transaction creates value out of thin air—within the rules defined by Bitcoin’s protocol—it plays a crucial role in both incentivizing miners and controlling Bitcoin’s inflation rate.
Key Requirements for Coinbase Transactions
While structurally similar to standard transactions, coinbase transactions must meet several unique requirements to be considered valid:
1. Must Be the First Transaction in the Block
The coinbase transaction must appear at the very beginning of the block. This ensures clarity in tracking newly issued coins and prevents double-spending risks during chain reorganizations.
2. Single Input with Special Fields
- TXID: Set to all zeros (
0000000...) because there is no previous output being spent. - VOUT: Set to
0xffffffff, indicating an invalid reference that confirms this is not a standard UTXO spend.
3. Block Height in ScriptSig (BIP 34)
Starting from block height 227,836, BIP 34 mandates that the block height be encoded at the beginning of the ScriptSig. This prevents TXID collisions across blocks and strengthens blockchain integrity.
4. SegWit Compatibility (BIP 141)
For blocks containing Segregated Witness (SegWit) transactions:
- The witness field must include a 32-byte reserved value.
- One output must contain a wTXID commitment, embedded using an
OP_RETURNscript, to commit to the hash of all witness data in the block.
5. Multiple Outputs Allowed
Miners can split rewards across multiple addresses—for example, paying pool participants or reserving portions for operational costs—as long as the total does not exceed the allowable block reward.
Real-World Examples of Coinbase Transactions
Let’s examine how these rules manifest in actual blockchain data.
Example 1: Early Blockchain Era (Pre-BIP 34)
In block 150,007 (mined in 2012), the coinbase transaction had:
- A single blank input with zeroed TXID and max VOUT.
- One output worth 50.0035 BTC: 50 BTC block subsidy + 0.0035 BTC in fees.
- Used a P2PK (Pay-to-Public-Key) locking script, common in early blocks.
No block height was encoded—this predates BIP 34 enforcement.
Example 2: Post-BIP 34 (With Height Encoding)
Block 400,021 introduced BIP 34 compliance:
- The
ScriptSigstarts with951a06, which decodes to block height 400,021 in little-endian format. - Includes a miner tag:
/BTCC/, identifying the mining entity. - Reward: 25.001166059 BTC (post-halving subsidy of 25 BTC + fees).
- Uses P2PKH (Pay-to-Public-Key-Hash), reflecting improved security practices.
Example 3: SegWit-Era Block (Post-BIP 141)
Block 538,403 illustrates full SegWit support:
Contains two outputs:
- First: Pays miner 12.50006517 BTC (12.5 BTC subsidy + fees).
- Second: An unspendable
OP_RETURNoutput with a wTXID commitment, securing witness data.
- Witness field includes a reserved 32-byte zero value.
- Miner tag: “Mined by AntPool79F” visible in ASCII within
ScriptSig.
This demonstrates how modern coinbase transactions serve dual roles: rewarding miners and anchoring critical consensus data.
Coinbase Maturity: When Can Rewards Be Spent?
One of Bitcoin’s safety mechanisms is coinbase maturity—the rule that outputs from a coinbase transaction cannot be spent until they are 100 blocks deep in the blockchain.
Why 100 Blocks?
If miners could immediately spend their rewards, a chain reorganization (e.g., due to competing blocks) could invalidate those transactions. Because coinbase transactions include block-specific data like height, they cannot be replayed on another chain without altering their TXID—making them non-reusable.
By enforcing a 100-block locktime:
- Network stability increases.
- Risk of orphaned-block-related double spends drops significantly.
- Miners are incentivized to build on stable chains rather than attempt short-term manipulation.
👉 See how secure asset management starts with understanding blockchain fundamentals.
For instance, the coinbase reward from block 400,000 was first spent in block 400,101, exactly after reaching maturity.
Frequently Asked Questions (FAQ)
Q: Can a miner claim less than the full block reward?
Yes. While rare, some miners have underclaimed rewards—such as sending only half the subsidy. Any unclaimed amount is effectively destroyed and removed from circulation forever.
Q: Can coinbase transactions include messages?
Absolutely. Miners often embed custom text or tags in the ScriptSig, such as mining pool names ("AntPool"), timestamps, or even quotes like "The Times 03/Jan/2009 Chancellor on brink..." (from Bitcoin’s genesis block).
Q: Are coinbase transactions taxable?
Yes. In most jurisdictions, receiving newly minted cryptocurrency via mining is treated as taxable income at fair market value when received.
Q: Do all cryptocurrencies use coinbase transactions?
Not all—but many proof-of-work coins like Bitcoin Cash and Litecoin follow similar models. Proof-of-stake systems handle issuance differently, often through minting or staking rewards.
Q: What happens if a coinbase transaction is invalid?
The entire block becomes invalid. Nodes reject it, and the miner loses both the reward and the right to build on that chain.
Core Keywords
- Coinbase transaction
- Block reward
- Bitcoin mining
- Transaction fees
- Block subsidy
- ScriptSig
- TXID
- Coinbase maturity
Final Thoughts
The coinbase transaction is more than just a miner’s paycheck—it’s a foundational element of Bitcoin’s design. From enabling decentralized issuance to anchoring consensus-critical data like block height and wTXID commitments, it ensures that Bitcoin remains secure, predictable, and resistant to tampering.
As upgrades like SegWit continue to refine its functionality, understanding the coinbase transaction becomes increasingly important for developers, miners, and investors alike.
👉 Stay ahead in crypto—explore tools that help you track blockchain activity in real time.