How blocks are verified: mining, nodes and confirmations
Last updated · Jump to the quiz
There’s no central company approving crypto transactions. Instead, thousands of independent computers follow the same rules and check each other’s work. Here’s what happens after you press Send, using Bitcoin as the example.
Step 1: Your wallet signs and broadcasts
Your wallet builds a transaction (“send 0.01 BTC from this address to that one, with this fee”) and signs it with your private key. The signature proves the owner approved it, without revealing the key. The wallet then sends it to a few computers on the network, called nodes, which pass it on to others. Within seconds it has spread around the world.
Step 2: Nodes check the transaction
Every node checks the transaction against the rules before passing it on:
- Is the signature valid for the coins being spent?
- Do those coins exist, and have they not already been spent?
- Is the transaction correctly formatted, and does it pay a fee?
Anything that fails is dropped. Valid transactions wait in each node’s waiting area, called the mempool, until a miner includes them in a block. You’ll see this as “pending” or “unconfirmed” in your wallet.
Step 3: Miners build a candidate block
A miner picks waiting transactions, usually those paying the highest fees, and assembles a candidate block. It also adds one special transaction that pays the miner the block reward (newly created coins, currently 3.125 BTC) plus the fees.
The block’s header includes the previous block’s fingerprint, a summary of all its transactions, a timestamp, and a number called the nonce.
Step 4: Mining is a guessing game
To be accepted, the block’s fingerprint (its hash) must be below a target set by the network. In practice that means it must start with a long run of zeros. The only way to find one is to change the nonce and hash again, over and over, trillions of times.
Each extra leading zero makes a valid fingerprint 16 times harder to find. A laptop can find one with 6 zeros in about 2 seconds. Bitcoin needs about 19 to 20 zeros, which takes the entire worldwide network about 10 minutes, and would take a single laptop billions of years.
The network adjusts the difficulty every 2,016 blocks, about every two weeks. If blocks came too fast, the target gets harder. If too slow, easier. That keeps Bitcoin at roughly one block every 10 minutes, no matter how many miners join. For what the machines themselves are like, see CPU vs. GPU vs. ASIC miners.
Step 5: Every node verifies the block
When a miner finds a valid fingerprint, it broadcasts the block. Every node then checks everything again on its own:
- The fingerprint really meets the target.
- It links to the latest block they know of.
- Every transaction inside is valid, and none spend the same coins twice.
- The miner didn’t pay itself more than the allowed reward plus fees.
If anything is wrong, nodes reject the block and the miner has wasted the electricity. That’s why miners play by the rules: cheating doesn’t pay. Miners do the expensive work, but they don’t get to decide the rules. The nodes enforce them.
Step 6: Confirmations pile up
Once your transaction is in a block, it has 1 confirmation. Each new block added on top adds another. To reverse your payment, an attacker would have to secretly build a longer chain that leaves it out, which gets dramatically harder with every block.
Against an attacker with 10% of all mining power, the chance of reversing a payment drops to about 1 in 4,000 after 6 confirmations (about an hour on Bitcoin). With 50% or more of the mining power, an attacker can eventually win no matter how long you wait.
Occasionally two miners find a block at almost the same time. Nodes briefly disagree, then all switch to whichever branch gets the next block, the one with the most total work. Transactions in the discarded block go back to the mempool. This is another reason the most recent block isn’t quite final.
How many confirmations should you wait for?
| Situation | Typical wait |
|---|---|
| Small everyday payment | 1 confirmation |
| Exchanges crediting a Bitcoin deposit | Often 1 to 6 confirmations |
| Large amounts | 6 or more |
| Smaller or newer coins | Many more, because they’re cheaper to attack |
What this means for you
- “Pending” isn’t received. If you’re selling something, wait for confirmations before handing it over.
- Check it yourself. Paste your transaction ID into a block explorer to see its status. You don’t need anyone’s help.
- A stuck transaction is normal when your fee was low. It’ll confirm or drop out. Anyone who contacts you offering to “unlock” or “speed up” a transaction for a payment is a scammer. See common scams.
Common questions
What does blockchain verification mean?
It means every node on the network independently checks each transaction and block against the rules: valid signatures, no double-spending, and the correct block reward. A block that breaks any rule is rejected, no matter who made it.
What is a nonce in blockchain?
The nonce ("number used once") is a field in the block header that miners change on every attempt. Its purpose is to give miners something to vary, so each try produces a new hash, until one meets the difficulty target.
What is hash rate?
Hash rate is how many mining guesses per second a machine or a whole network makes. Higher network hash rate makes the blockchain more expensive to attack.
What does a node do in crypto?
A node keeps a copy of the blockchain and checks every new transaction and block against the rules. Nodes reject anything invalid, even if a miner or validator produced it.
Did it stick? 3 questions
Who enforces the rules on a blockchain?
Nodes reject invalid blocks, even from miners.
Your wallet shows a payment as "pending." Has it arrived?
Pending transactions can still be replaced.
Why wait for several confirmations?
An attacker would need to out-build the whole network.