Home > Today’s Crypto News
bitcoin
bitcoin

$83571.608249 USD

-1.38%

ethereum
ethereum

$1826.028236 USD

-3.02%

tether
tether

$0.999839 USD

-0.01%

xrp
xrp

$2.053149 USD

-2.48%

bnb
bnb

$601.140115 USD

-0.44%

solana
solana

$120.357332 USD

-3.79%

usd-coin
usd-coin

$0.999833 USD

-0.02%

dogecoin
dogecoin

$0.166175 USD

-3.43%

cardano
cardano

$0.652521 USD

-3.00%

tron
tron

$0.236809 USD

-0.59%

toncoin
toncoin

$3.785339 USD

-5.02%

chainlink
chainlink

$13.253231 USD

-3.91%

unus-sed-leo
unus-sed-leo

$9.397427 USD

-0.19%

stellar
stellar

$0.266444 USD

-1.00%

sui
sui

$2.409007 USD

1.15%

Nonce

What Is a Nonce in Blockchain?

Nonce (literal meaning — for one occasion) is a way to sequence and segregate transactions on the Ethereum blockchain and other smart contract platforms. Generally, it is used in cryptography as a non-repeated number for securing communication. 

An Ethereum wallet can broadcast multiple transactions from an account, without much delay between one another, to the mainnet. Hence, it is necessary to have a mechanism which can determine which transaction is processed first. Otherwise, there would be malfunctions caused by conflicting transactions associated with account balance transfers.

For example, if a broadcasted transaction has a nonce value of 2, it must be processed first before the transaction with nonce value of 3. The Ethereum mainnet is designed in such a manner that a higher-nonce-value transaction couldn’t be included in any blocks until the ones before them are cleared and settled on-chain. 

However, this process can have issues since if a transaction with a lower nonce value is stuck (owing to the gas amount), all transactions received afterwards with nonce values higher would also be stuck.

The process of transaction cancellation and transaction speeding on the Ethereum network also uses “nonce” as its basis. For instance, if a user wishes to cancel a transaction, he can send a transaction to his own wallet with the same nonce number as the transaction he is attempting to cancel. It’s not always guaranteed, though, since if the nonce is the same, any transaction might get randomly approved. 

In case a transaction is stuck and does not get approved, users can raise the gas price and send the same transaction with the same nonce number. Since the nonce number is the same while the fee has been bumped, this transaction has a higher probability of being validated. Some wallets have both of these functions automated.