21 BTC

Mining

Updated Reviewed articleRandom article
In plain words

Mining is the work that adds new blocks to Bitcoin. Miners run special computers (ASICs) that guess numbers; the winner of each round earns the block subsidy and the fees.

Short definition

Using computing power to find valid blocks; secures the network and issues new coins.

What miners do

A miner takes waiting transactions from the Mempool, builds a block template with a coinbase paying itself, and hashes the header until it finds a Proof of work below the target. A valid block is broadcast and every node checks it before accepting it.

Revenue = subsidy + fees. The subsidy halves every 210,000 blocks (Halving), so fees are expected to matter more over time. Revenue per unit of hashrate per day is called hashprice.

Hardware

CPUs mined the first blocks; the first public GPU miner appeared in 2010, and since 2013 almost all hashing is done by ASICs, chips that only compute SHA-256. Efficiency is measured in joules per terahash (J/TH). Profitability depends mostly on the price of electricity.

Pools

A single machine might wait years for a block, so most miners join a Mining pool that splits rewards by contributed work using a payout scheme. Pools also choose which transactions go into blocks; Stratum V2 and DATUM let miners build their own templates.

ASIC miners and profitability Mining pools compared Glossary on the Learn page

See also

References

  1. Satoshi Nakamoto, Bitcoin: A Peer-to-Peer Electronic Cash System (2008) bitcoin.org
  2. Bitcoin developer guide: mining developer.bitcoin.org
  3. mempool.space mining dashboard mempool.space