⛏️ The Mining Race: Finding the Golden Nonce

Learn how miners compete to solve cryptographic puzzles

🔄 The Mining Process

Mining is a step-by-step process where computers race to find a valid nonce. Let's break down exactly what happens.

📋 Step-by-Step Walkthrough

Click through each step to understand the complete mining cycle:

1
Collect Transactions
Gather pending transactions from the mempool
2
Create Block Header
3
Set Initial Nonce
4
Calculate Hash
5
Check Difficulty
6
Increment Nonce
7
Broadcast Block

🎮 Interactive Hash Calculator

Try different nonces and see how the hash changes. Notice how even tiny nonce changes completely alter the hash:

Enter a nonce value to see the resulting hash

🎲The Nonce

"Nonce" stands for "number used once". It's a counter that miners increment with each hash attempt.

Try: 0, 1, 2, 3, 4, 5...
Until valid hash found

Hash Speed

Modern ASIC miners can compute trillions of hashes per second, trying billions of nonces every moment.

100 TH/s = 100 trillion/sec

🔍 What Miners Actually Do

1. Create Block Template

Bundle transactions, add metadata, include previous block's hash

2. Brute Force Search

Test billions of nonces per second, computing hash for each

3. Find Valid Nonce

When hash meets difficulty target, broadcast block immediately

4. Collect Reward

Receive block reward (6.25 BTC) + transaction fees

💰 Mining Economics

Costs
  • • Mining hardware
  • • Electricity bills
  • • Cooling systems
  • • Facility rent
Revenue
  • • Block reward (6.25 BTC)
  • • Transaction fees
  • • ~$200,000 per block
  • • Every ~10 minutes
Profit
  • • Depends on BTC price
  • • Electricity costs
  • • Hardware efficiency
  • • Network difficulty