Mining economics

Coinbase transaction

The coinbase transaction is the first transaction in every block, through which the miner claims the subsidy and fees.

Put it to work Bitcoin hashprice, live What a petahash earns per day today. Open the page
Position
First in the block
Inputs
One, pointing at no earlier coins
Message field
2 to 100 bytes
Must contain
The block height
Upper limit
Subsidy plus fees of that block

What it means in practice

It has no real inputs; instead it carries a coinbase field of up to 100 bytes that starts with the block height and often includes a pool's tag. Pools that pay members directly from the block list each member's address as an output of this transaction. The term has nothing to do with the exchange of the same name.

Inside the message field

An ordinary input proves the right to spend something. The coinbase input has nothing to prove, so its space is free for other uses. It starts with the block height, a rule added so that no two coinbase transactions are identical. After that come counters, a pool’s tag and sometimes a short text.

Explorers read the tag to say which pool found a block. It is a label the pool chose and not proof, though the payout addresses usually agree with it.

The extra nonce lives here

The 32-bit nonce in the header runs out in microseconds. Changing a counter in the coinbase transaction changes the Merkle root and opens a fresh set of headers. Pools give each machine its own prefix so that no work is done twice.

Example figures: a 4-byte counter has 4.29 billion values. With the header nonce that makes 1.84 × 10^19 headers for each second’s timestamp and version. At 200 TH/s they last 25.6 hours, and a new job arrives long before.

Reading the outputs

Look at any recent block. You will see one output with nearly the whole reward, or several if the pool pays members directly. A further output of zero coins carries the witness commitment, a hash that ties the signature data into the block.

Example figures: subsidy 3.125 BTC and fees 0.041 BTC give a limit of 3.166 BTC. The outputs may add up to that or less. One satoshi more makes the whole block invalid, whatever work stands behind it.

How merged mining uses it

For merge-mined chains the message field holds a marker and a hash that commits to the other chain’s block. Anyone checking that chain can see that the work was done with its block in mind. On Litecoin, this is how Dogecoin’s blocks ride along.

Because the commitment is a single hash, one parent block can serve many child chains at once. The space it takes does not grow with their number.

Why a hosted or pooled miner might look at it

Stratum jobs contain the two halves of the coinbase transaction, so a machine or a curious owner can see where a found block would pay. Solo miners use that to check that their own address is in the job.

With pools that pay from the block, it is the receipt. Your output in the coinbase transaction is your payout, and the block is the proof of it.

Worked example

A pool that pays 50 members directly writes 50 outputs into the coinbase transaction, splitting 3.175 BTC so that a member with 2% of the window receives 0.0635 BTC before fees.

Example figures, not live data.

Common mistakes

  • Mixing the term up with a company that has a similar name.
  • Treating a pool tag as proof of who mined a block.
  • Trying to spend coinbase outputs before 100 more blocks have passed.

Common questions

Does every block have a coinbase transaction?

Yes. A block without one is invalid, and one block cannot have two.

Can the message say anything?

Within 100 bytes, yes. The first Bitcoin block carries a newspaper headline of its day.

Is the coinbase the same as the block reward?

It is the transaction that claims the reward. The reward is the amount.

What the top Bitcoin miners earn today

Income per day for one machine, before electricity.

Top earner In stock
Bitmain Hydro

Antminer S23 Hyd 3U 1,160 TH/s

$32.66 income per day

Hashrate, Power
1,160 TH/s11,020 W
Price
$25,739
Coming soon
MicroBT Hydro

WhatsMiner M79S 930 TH/s

$26.18 income per day

Hashrate, Power
930 TH/s14,000 W
Price
Price on request
In stock
Bitdeer Hydro

SEALMINER A4 Ultra Hydro 886 TH/s

$24.94 income per day

Hashrate, Power
886 TH/s8,373 W
Price
$19,800
Coming soon
MicroBT Hydro

WhatsMiner M79 870 TH/s

$24.49 income per day

Hashrate, Power
870 TH/s14,000 W
Price
Price on request

Updated 8 minutes ago Not financial adviceHow we calculate