Coinbase transaction
The coinbase transaction is the first one in a block and pays the miner.
The coinbase transaction is the first transaction in every Bitcoin block. It has no real input, creates the new coins allowed by the block subsidy, and gathers all fees from the block’s other transactions into outputs chosen by the miner.
How it works
An ordinary input points to a previous output. A coinbase input points to nothing, which is what lets it create value. Its script field is free-form within a small length limit, and since BIP34 it begins with the block height, which keeps each coinbase unique. Miners and pools often put extra data and a short tag in the rest.
The outputs may total at most the subsidy plus fees. Every node rejects a block that claims more, as described in the transactions developer guide.
An illustration with made-up numbers: a block in the 3.125 BTC era whose transactions paid 0.2 BTC in fees may carry coinbase outputs totaling up to 3.325 BTC, and not a satoshi more.
Where you see it
Block explorers list the coinbase first in every block. A wallet that receives coinbase outputs shows them as immature, because consensus forbids spending them until 100 blocks have been built on top. The constant sits in consensus.h. The wait exists because a block can be dropped in a short reorganization, and a dropped coinbase disappears with it.
The fee part of a coinbase is the sum of fees paid by that block’s transactions, and the mining hub groups the related data. The share of block revenue that comes from fees is shown below with its source and fetch time.
Common confusions
- It is a protocol term, not a brand. It means the transaction that mints a block’s coins.
- It is not paid by anyone. The subsidy is new issuance and the fees come from other users, collected in one place.
- Pool payouts are separate. A pool receives the coinbase and pays its members in later, ordinary transactions under its own rules.
The full payout mechanics are in how miners get paid. This entry is educational and is not financial advice.
Sources
- Developer guide: transactions · Bitcoin developer documentation
- src/consensus/consensus.h · Bitcoin Core
- BIP 34 · Bitcoin Improvement Proposals
Educational data only. Not financial, investment or tax advice; no licence is claimed. Bitcoin Prime publishes no forecasts, targets or trading signals.