Skip to content

What is a Nonce in Blockchain?

A number used once in cryptographic communication, often used in proof-of-work mining and to ensure transaction uniqueness.

Key details

Mining
In proof-of-work, miners change the nonce to get different hash results.
Unique
Ensures each transaction or block is unique.
Security
Helps prevent double-spending and replay attacks.
Sequence
In account-based models, it's used to ensure transaction order.

Examples

  1. 01In Bitcoin mining, changing the nonce to find a hash that meets difficulty requirements.
  2. 02Ethereum uses nonces to ensure the order of transactions from a single address.
  3. 03In cryptographic communication, nonces are used to prevent replay attacks.