Bitcoin Block Rewards and Mining Fees: Coinbase Transactions Explained
A Bitcoin miner may claim new issuance and transaction fees in the block's first transaction, called the coinbase transaction. This is distinct from the Coinbase exchange: 'coinbase' here is a Bitcoin protocol term.
What makes up a miner's block revenue?
The maximum claimable value is the block subsidy at that height plus the fees from transactions included in the block. For a normal non-coinbase transaction, its fee is the sum of spent input values minus the sum of created output values. Fees are not separate outputs paid directly to the miner in each transaction.
The coinbase transaction creates one or more outputs paying the miner or pool's designated recipients. It may claim less than the maximum allowed amount; it must not claim more. Some outputs can also carry commitments required by consensus, such as the SegWit witness commitment when applicable.
When can a coinbase output be spent?
Bitcoin consensus requires coinbase outputs to mature before they can be spent: they need 100 confirmations under the standard Bitcoin Core interpretation. A newly mined block's coinbase output cannot immediately fund an ordinary spend. This maturity rule helps account for the possibility that recent blocks are reorganized.
Why do fees vary between blocks?
Transactions compete for limited block space. Miners commonly use fee-rate policies, expressed in satoshis per virtual byte (sat/vB), to select candidates. Package relationships, policy constraints, and other considerations also influence selection. The actual total fees collected depend on the transactions included, not on a fixed percentage imposed by Bitcoin consensus.
Are pool payouts the same as the coinbase reward?
Not necessarily. Mining pools may distribute earnings according to their own accounting and payout arrangements. A pool participant's payment can differ from the raw value in the block's coinbase outputs. Developers analyzing blocks should distinguish consensus-visible revenue from off-chain pool accounting.
Primary references
Bitcoin Developer Reference — Transactions: https://developer.bitcoin.org/reference/transactions.html
Bitcoin Developer Guide — Block Chain: https://developer.bitcoin.org/devguide/block_chain.html
Bitcoin Core source: https://github.com/bitcoin/bitcoin
