← Back to Glossary

Coinbase Transaction

Coinbase transaction is a special type of transaction in a blockchain that is created as the first transaction in a block. It has no inputs and is used to collect the block reward, including newly generated coins. In Bitcoin, it is the mechanism through which new BTC enters circulation.

Coinbase Transaction Explained in Simple Terms

A coinbase transaction is how miners get paid for their work. Unlike normal transactions, where coins are sent from one user to another, this transaction creates new coins and sends them directly to the miner.

It appears at the very top of every block and is the first transaction recorded. Instead of taking money from an existing wallet, it generates new Bitcoin according to the network rules. It also includes the transaction fees from all other transactions in that block.

Think of it as a reward receipt. When a miner successfully creates a block, the network allows them to include this special transaction to claim their earnings.

The name “coinbase” can be confusing because it is not related to any exchange or company. It simply refers to the origin of new coins in the blockchain.

This transaction is essential because it both distributes new Bitcoin and incentivizes miners to keep the network running.

How Coinbase Transaction Works

A coinbase transaction is created by the miner when building a new block.

After collecting transactions, the miner constructs a block and includes a coinbase transaction as the first entry. This transaction has unique properties:

  • It has no inputs (no previous coins are spent)

  • It creates new coins based on the current block reward

  • It includes all transaction fees from the block

The miner specifies an address where the reward will be sent. Once the block is successfully mined and accepted by the network, the reward becomes valid.

However, coinbase rewards cannot be spent immediately. In Bitcoin, they require a maturity period of 100 blocks before they can be used. This rule adds an extra layer of security to the network.

Coinbase transactions are also used to include extra data, such as mining pool identifiers or messages, within the block.

Example of Coinbase Transaction in Practice

Imagine a mining pool successfully mining a new Bitcoin block using ASIC hardware.

The block includes hundreds or thousands of regular transactions, each with fees. At the top of the block, the pool inserts a coinbase transaction that claims the total reward - for example, 3.125 BTC plus fees.

If the total reward equals 3.4 BTC, this amount is sent to the pool’s wallet address. The pool then distributes the earnings among miners based on their hashrate contribution.

After 100 blocks are added to the blockchain, the reward becomes spendable. Until then, it remains locked as part of the network’s validation process.

Frequently Asked Questions

Still have questions about Coinbase Transaction?
The term “coinbase” refers to the creation of new coins at the start of a block. It is not related to any company or exchange. It simply describes the origin point of newly generated cryptocurrency.
Yes, every mined block includes exactly one coinbase transaction. It is always the first transaction in the block and is used to distribute the block reward.
No, coinbase rewards must go through a maturity period. In Bitcoin, miners must wait for 100 confirmations before they can spend the coins.
If the coinbase transaction is invalid, the entire block is rejected by the network. This means the miner does not receive the reward and must try again.
Yes, all transaction fees from the block are included in the coinbase transaction along with the newly created coins, forming the total block reward.