Coinbase Transaction

Learn what a coinbase transaction is in cryptocurrency mining and how it pays block rewards to miners.

3 min read
mining

Definition

A coinbase transaction is the special first transaction in a newly mined block. It creates the block reward and assigns it to the miner or mining pool that found the valid block. Unlike normal transactions, it does not spend coins from a previous output.

How It Works

When a miner builds a candidate block, it starts by creating a coinbase transaction. This transaction claims the allowed block subsidy plus the transaction fees from the other transactions in the block.

In Bitcoin, the coinbase transaction has a special input because there is no earlier transaction being spent. Instead of referencing a previous output, it contains protocol-defined placeholder data. Miners often use this area to include extra data, such as pool information or an extra nonce used to create more block header variations during mining.

The output sends the reward to an address controlled by the miner or mining pool. If a pool mined the block, it later distributes shares of the reward according to its payout rules.

Nodes check the coinbase transaction carefully before accepting the block. The reward cannot exceed the current block subsidy plus the total transaction fees in that block. If the miner tries to create too many coins, the entire block is invalid and other nodes will reject it.

Coinbase rewards also usually have a maturity period. In Bitcoin, newly created coins from a coinbase transaction must wait 100 confirmations before they can be spent.

Why It Matters

The coinbase transaction is how proof-of-work mining pays miners. It turns the act of finding a valid block into revenue, helping cover hardware, electricity, cooling, and operations.

It also controls new coin issuance. In networks with a fixed reward schedule, such as Bitcoin, every valid coinbase transaction must follow the protocol’s supply rules. This is one reason ordinary nodes matter: they independently verify that miners are not creating extra coins.

For miners, the coinbase transaction is also part of the mining process itself. Changing data inside it changes the Merkle root, which changes the block header being hashed. This gives miners more possible block variations to test when searching for a valid proof of work.