TrustVault x Metamask - How to Customize a Transaction Nonce

What is a Nonce?

A "nonce" stands for a "number used only once." Every transaction you send from your MetaMask wallet is assigned a unique nonce, which begins at 0 for your first transaction and increases by 1 with each subsequent transaction.

The nonce serves as a unique identifier for each transaction, ensuring they are processed in the correct order by the network and preventing double-spending. In certain situations, customizing the nonce can help you speed up or cancel a pending transaction.

How to Customise the Nonce When Sending a Transaction

You can customise the nonce in MetaMask by following these steps:

For MetaMask Extension:

Enable Nonce Customisation:

    • Open MetaMask and click on the three vertical dots in the upper-right corner of your wallet screen.
    • Navigate to Settings > Advanced.

MetaMask customize transaction nonce settings

    • Scroll down to find the Customize transaction nonce option and enable it.

Send a Transaction:

    • Start sending a transaction as you normally would by entering the recipient’s address and the amount you wish to send.
    • Click ‘Next’ to proceed.

Customize the Nonce:

    • Before confirming the transaction, you'll see a breakdown of the gas fees and other transaction details.
    • Locate the field labeled Custom nonce and enter the desired nonce value.

MetaMask_customize_transaction_nonce_transaction.png

Confirm the Transaction:

    • Once you've entered the correct nonce, click Confirm to submit your transaction.
Was this article helpful?
0 out of 0 found this helpful