AI disclosure: drafted by Basis Desk's AI newsroom and machine-checked against the primary sources listed below — how we use AI. Originally published on Basis Desk.

The first transaction in every Bitcoin block creates new coins and distributes fees. Understand the mechanics of block subsidies, the 100-block maturity rule, and the extraNonce data field.

Key points

  • A coinbase transaction is the first transaction in a block, creating new bitcoin and collecting fees.
  • It does not require prior inputs, operating outside the standard UTXO model.
  • Miners cannot spend the reward until 100 subsequent blocks are mined, a rule called coinbase maturity.
  • The extraNonce field allows miners to expand the hash search space when standard nonces are exhausted.

A coinbase transaction is the first transaction recorded in a new Bitcoin block. It serves as the mechanism by which the network introduces new $BTC into circulation and compensates miners for securing the ledger. Unlike standard transactions, a coinbase transaction does not require a previous output as an input, effectively creating new coins from a blank slate [1].

The Anatomy of a Coinbase Transaction

Every time a user sends funds on the network, the transaction consumes existing unspent transaction outputs and creates new ones. This continuous chain of ownership requires cryptographic proof that the sender has the right to spend the funds. You can read more about this model in our guide on How a Bitcoin Transaction Works: UTXOs, Mempools, and Finality.

The coinbase transaction breaks this rule by necessity. Because it is the genesis point for new coins, it has no previous outputs to consume. Instead, its input consists of a special field called the coinbase, which allows the miner to claim their block reward. The outputs of this transaction direct the newly minted coins, along with all the transaction fees collected from the block, to an address controlled by the successful miner [2].

The Block Subsidy and Transaction Fees

The total value a miner receives in a coinbase transaction consists of two components: the block subsidy and the accumulated transaction fees from all other transactions included in that block.

The block subsidy is the newly minted bitcoin generated by the network protocol. This amount is hardcoded into the software and halves every 210,000 blocks, a period roughly equating to four years [1]. The transaction fees are the sums paid by users to have their transactions prioritized and included in the block.

To illustrate the math, assume a miner successfully creates a block during an epoch where the subsidy is 3.125 BTC. The miner selects 2,000 pending transactions from the mempool to include in this block. These transactions collectively offer 0.5 BTC in transaction fees. The coinbase transaction will therefore have an output of 3.625 BTC, directed to the miner's specified address. If a miner attempts to claim a reward higher than the sum of the subsidy and the fees, the network nodes will reject the block as invalid [2].

The 100-Block Maturity Rule

Unlike funds received from a standard transfer, miners cannot immediately spend the proceeds of a coinbase transaction. The protocol enforces a strict lock-up period known as coinbase maturity [1].

Under this rule, a coinbase transaction cannot be spent until 100 subsequent blocks have been mined and added to the blockchain. This delay protects the network from complications arising from chain reorganizations. In distributed networks, it is common for two miners to discover a block at roughly the same time, creating a temporary fork in the blockchain. The network resolves this by adopting the longest chain, which means one of the competing blocks will ultimately be discarded as a stale or orphan block.

If miners were permitted to spend their block rewards immediately, a chain reorganization could invalidate the block that originally created the coins. Any subsequent transactions relying on that coinbase output would also become invalid, potentially disrupting the ledger. Mandating a 100-block wait ensures that the block containing the coinbase transaction is deeply embedded in the consensus chain before the funds enter general circulation [2].

The extraNonce and Arbitrary Data

The input field of a coinbase transaction has no signature requirements, leaving space for miners to include arbitrary data. Historically, this space was used by Bitcoin's creator to embed a headline from The Times into the Genesis block, proving the block was not pre-mined [1].

In modern mining operations, this field serves a critical technical function. Miners secure the network by repeatedly hashing block data with a random number, called a nonce, until they find a hash that meets the network's difficulty target. The standard block header only contains a 32-bit nonce, which provides roughly 4 billion possible combinations. Given the immense processing power of modern mining hardware, this narrow range is exhausted in a fraction of a second.

To continue searching for valid hashes, miners utilize the extraNonce within the coinbase transaction. By incrementing the extraNonce, the miner alters the coinbase transaction itself. Because the coinbase transaction is part of the block data, changing it alters the root of the Merkle tree, which in turn changes the block header. This resets the standard nonce space, allowing the miner to test billions of new combinations without needing to reconstruct the rest of the block [2].

Common Misconceptions

  • The coinbase transaction is related to the corporate exchange. The technical term predates the existence of the company. It refers strictly to the base of coins generated in a block.
  • Coinbase transactions have sender addresses. There is no originating address in the input of a coinbase transaction, as the funds are newly issued by the protocol rather than transferred from an existing user.
  • The total reward is fixed. While the block subsidy is deterministic, the total reward fluctuates based on network congestion and the varying transaction fees users are willing to pay.

How This Connects to the Market

The mechanics of the coinbase transaction define the economic security model of the network. The steady issuance of the block subsidy provides a predictable inflation schedule, while the inclusion of transaction fees establishes a market-driven incentive system. As the block subsidy continues to halve, miners will increasingly rely on transaction fees to sustain operations. Understanding this transition is essential for modeling the long-term viability of the network's security architecture, as mining profitability directly dictates the amount of computational power protecting the ledger.

FAQ

Is a coinbase transaction related to the cryptocurrency exchange?

No. The term is a technical concept within the Bitcoin protocol that predates the founding of the exchange by several years.

Why is there a 100-block maturity rule?

The delay ensures that a block is securely embedded in the main chain, preventing the creation and subsequent spending of invalid coins if the block is orphaned during a chain reorganization.

What happens if a miner claims more than the allowed reward?

The entire block will be rejected by full nodes on the network, and the miner will forfeit the legitimate reward and the energy spent to mine the block.

Sources

  1. Bitcoin Developer Guide: Mining — Bitcoin.org
  2. Bitcoin Developer Reference: Block Chain — Bitcoin.org

Basis Desk is a source-verified crypto newsroom. Market data, a free MCP server for AI agents and JSON APIs: basisdesk.news/developers. Not investment advice.