Skip to main content

How to customize a transaction nonce

Does this article need to be translated?

What is a nonce?

The term 'nonce' is a portmanteau of 'number used only once': every single transaction you send from your MetaMask wallet has one, and the number (starting with 0 for the first transaction you send) increases in increments of 1.

Each transaction's nonce is an identifier that ensures your transactions are processed by the network in the correct order, preventing 'double spend' scenarios.

In MetaMask, adjusting the nonce can be useful if you need to speed up or cancel pending transactions.

How do I customize the nonce when sending a transaction?

Customizing the nonce isn't possible unless you enable it. To do so, head to the transaction review window, and toggle "Show advanced details" in the upper right corner. If you have Smart Transactions enabled, and the transaction is on Ethereum mainnet or BNB Smart Chain, you'll need to turn Smart Transactions off before you can customize the nonce. Make sure to turn Smart Transactions back on after you've finished customizing the nonce.

MetaMask transaction show advanced details toggle

Customize transaction nonce location

If you use a MetaMask Extension version older than 12.13.0, you can find the "Customize transaction nonce" option in Settings > Advanced.

Start to send a transaction from your wallet. Enter the recipient address and the value, and click 'Next'. Before you confirm the transaction, you'll see a breakdown of the gas fees and other details that looks like this:

MetaMask transaction advanced details custom nonce

Click the 'Custom nonce' field to enter the number you need, and, when you're ready to submit the transaction, 'Confirm'.