In crypto, a nonce is short for “number used once.” It is a simple but crucial number, usually a 32-bit integer, that miners change repeatedly to solve a mathematical puzzle and add new blocks to the chain.

In proof-of-work systems like Bitcoin, each block has a block header with fixed information. This information includes the previous block hash, Merkle root (summary of transactions), timestamp, difficulty target, and the nonce.ย 

What happens is that miners take all this information, run it through a hash function, and get a hash with 256 bits.ย 

The network sets a difficulty target that the hash must be below a very small number (lots of leading zeros, e.g., starting with many 0s). Because the hash function is deterministic and extremely sensitive to input changes, even flipping one bit produces a completely different hash.

Join our newsletter

Since most header fields are fixed, miners can’t easily alter them without invalidating the block. The nonce is the adjustable field. Miners start with nonce = 0, hash the block, and check if the result meets the target. If not, increment nonce to 1, hash again, and repeat billions or trillions of times per second across the network.

The “proof” in proof-of-work is the discovery of a valid nonce, which indicates that the miner actually put in computational effort. After being located, the block is added to the chain, broadcast, and confirmed by others. The block reward and fees are given to the victorious miner.

Similar nonces were used for mining in Ethereum (prior to The Merge), but Ethereum also makes use of a transaction nonce, or a per-account counter, to guard against replay attacks and guarantee that transactions are completed in the correct order.

Mining nonce transforms brute-force guessing into the energy-intensive competition that maintains the integrity and tamper-resistance of proof-of-work chains.

Disclaimer: Coin Medium is not responsible for any losses or damages resulting from reliance on any content, products, or services mentioned in our articles or content belonging to the Coin Medium brand, including but not limited to its social media, newsletters, or posts related to Coin Medium team members.

Related Terms

IYKYK

IYKYK is a popular acronym that stands for “If You Know, You Know”. When used in chats, it refers to someone having insider knowledge, insights, or experiences about a particular matter. People in the crypto community use it to make others feel like they belong, making them part of an inner circle that has exclusive knowledge. They used it to hint at trends, opportunities, or memes without explicit explanation, subtly leveraging their knowledge within the group. The term is more

LFG

In the world of cryptocurrency, LFG is a popular acronym that stands for Let’s F**king Go. A more polite and family-friendly version, is Let’s Freaking Go. The term is popular within gaming and internet lingo, but in crypto, it carries a more positive vibe of high energy. Since then, itโ€™s become the ultimate war cry for crypto fans looking to share some hype. It is mostly used as a hype chant by traders, investors, and community members when they want

Avatar

An avatar is your digital identity that represents you across decentralized applications (dApps), metaverses, and social media. Its not just your profile picture, but a verifiable digital soul. Unlike traditional social media photos, crypto avatars are often formatted as NFTs (Non-Fungible Tokens). It acts as one’s personal branding tool and an investment vehicle, if it goes viral. Avatars let you stay anonymous but still lets you show off your status or affiliations. Some avatars are also useful because they can

Stay ahead of the curve with expert crypto insights, guides, and market trends โ€” join to our newsletter.