Topic · How blockchains work
What is a nonce in blockchain?
- Quick fact 1
A bitcoin block header includes a nonce field that miners change while searching for a valid hash.
Source: Bitcoin developer reference: Block chain (block headers)
- Quick fact 2
Bitcoin mining repeats hashing until a block header hash is below the target.
Source: Bitcoin developer guide: Mining
- Quick fact 3
In Ethereum, each transaction from an account carries a nonce, a counter of transactions sent from that account.
Source: ethereum.org: Transactions
The short lesson
Nonce is short for “number used once.” Blockchains use the word in two different ways, and beginners often meet both.
1. The mining nonce (bitcoin)
Each bitcoin block header has a small field called the nonce. Miners change it, hash the header, and check whether the result is below the network’s target. If not, they change it again. Billions of tries later, someone finds a winner and the block is accepted. That trial-and-error is proof of work. See what is a hash function.
2. The account nonce (Ethereum)
On Ethereum, every account has a counter. Your first transaction has nonce 0, the next has 1, and so on. The network processes them in order, and the same nonce cannot be used twice. That stops a signed transaction from being replayed.
Why it shows up in your wallet
If an Ethereum transaction is stuck, later ones wait behind it. Some wallets let you “speed up” or “cancel” by sending a new transaction with the same nonce and a higher fee. Only one of the two can confirm.
Lesson game · earn XP
Check yourself: 3 quick questions
Perfect score = combo bonus. Each question returns in your spaced-repetition review.
Memory · spaced repetition
Flashcards: lock it in
Flip each card, then say if you knew it. Missed cards come back sooner.
Related terms
Go deeper in Lesson 6: What a network fee is
More in How blockchains work
Common questions
Do I need to set a nonce myself?
Usually not. Wallets set it automatically. Advanced settings let you change it for speed-up or cancel.
Why is my Ethereum transaction stuck?
Often a lower-fee transaction with an earlier nonce is waiting. Later ones queue behind it.
Does bitcoin use an account nonce?
No. Bitcoin uses UTXOs, so it does not need an account counter.
Get the free weekly brief + Scam-Spotting Cheat Sheet
Get the one-page Scam-Spotting Cheat Sheet now, then a short weekly brief by email: one plain-English lesson and the week’s crypto news. No coin picks. No price tips. Want the full guide too? Get the free Crypto Safety Starter Kit (PDF). Every lesson stays free to read without it. Unsubscribe anytime.
Reviewed and sources
Written and reviewed by Joshua Baskin, founder. Last reviewed . How we check facts · Report an error
Education only. Not investment, tax or legal advice. We do not pick coins.
