Jun 112020
 

You can set nonce in MetaMask but it is hidden by default. You may want to set your nonce because the gas prices are high and you want to unstuck your transaction. By setting your own nonce, you can try to override a pending transaction. You may not be able to do this via the MetaMask UI – for example if you imported your Ethereum wallet.

Before we begin, note that you need to double-check the nonce that you’re setting. If you set the nonce too low or too high, the transaction won’t get confirmed. This is definitely for advanced users of MetaMask and Ethereum, so do this with care. Read more about nonce on Stack Overflow.

Now that you’re ready, let’s get down to setting your own nonce in your MetaMask

Step-1: Go to your account on the top right corner of your MetaMask extension and click on Settings.

MetaMask Account Settings

Step-2: Under Settings, click on Advanced Settings. Then find the setting that says: “Customize transaction nonceTurn this on to change the nonce (transaction number) on confirmation screens. This is an advanced feature, use cautiously. Toggle this to “ON” state.

MetaMask Advanced Settings

Step-3: Now you can create a transaction as you normally would (e.g. if you want to send a 0 ETH transaction to yourself) and you’ll see a new field appear called “Set Custom Nonce“. This will show up in the confirmation screen when you try to send the transaction out.

MetaMask Set Custom Nonce

Here, we have manually set the custom nonce to 10000. Make sure you double check the nonce value!

When you hit confirm, MetaMask will broadcast your transaction with the custom nonce that you chose above.

Related: Learn how to speed up your MetaMask if it is slow

Tip: 0x5109110A484D4E20e1e5f5E94dc9620d7DD0819E

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

This site uses Akismet to reduce spam. Learn how your comment data is processed.