Fixing Stuck Pending Transactions on MetaMask

3 min. readlast update: 03.20.2023

There are two types of stuck transactions: 

  • Those stuck in Metamask having never been sent to the network.
  • Those stuck pending in the network.

To determine the type go to https://bscscan.com/, paste in your wallet public address and check if there are any transactions marked as pending in the “Transactions” or “BEP20 Token Txns” tab.

If there are pending transactions on BSCscan:

This means that your transaction has been received by the BNB Network. Your transaction will be processed eventually. However, if your wallet has underestimated gas or in times of gas spikes this may be delayed. If you do not want to wait there is an advanced way to clear these. You need to send a new transaction with higher gas with the same nonce as the old one. We suggest transferring a tiny bit of BNB to yourself. You can find the nonce on BSCscan in the pending transaction.

If your transaction is stuck on pending in Metamask, and the “Cancel” button isn’t helping, you might need to use the method described below to clear your transaction backlog. This method works by essentially overwriting the stuck transaction with another, higher-priority transaction.

1. Enable Customized Transaction Nonce

  1. Open your MetaMask plugin.
  2. Click on the colorful circle icon on the top-right and click Settings from the dropdown menu.
  3. In the Settings menu, select Advanced.
  4. Scroll down until you see Advanced gas controls. Toggle this to ON.
  5. Still in Advanced settings, keep scrolling until you see Customize transaction nonce. Toggle this to ON.

2. Find Your Stuck Transaction

We’re now going to find the transaction that’s stuck, and make a note of the “nonce”. That’s a kind of identifier, which we’ll re-use later. 

Go back to the top page of MetaMask. In the “Assets” tab, find the token type of your stuck transaction

In the token’s menu, find your Pending transaction in the Queue area. Click on your transaction for more details.

Look for the Nonce entry, and take note of this number.

3. Overwrite the Stuck Transaction

Now we’re going to make a new transaction to replace the stuck one. We’ll customize the Nonce number, so that it’s the same as the one that you just wrote down.

  1. Create a new transaction to replace your stuck transaction. This time around, increase the Transaction Fee. Here we’ve increased it from 9 to 20. This will make it more likely for your transaction to be added to a block.
  2. On the confirmation page, make sure your Gas Price is now at your new, higher amount. 
  3. Find the CUSTOM NONCE entry and change the nonce to the number you wrote down in step 7. Now click Confirm.
  4. Your new transaction should now be accepted into a block. To check, open MetaMask and click the Activity tab.
  5. Your completed transaction should show at the top of your Activity list. If it still says “Pending” in orange you’ll need to wait a little longer, or try the process again with an even higher transaction fee (gas price).

Since no wallet can create two transactions of the same nonce, if the replacement transaction you make is successful, your stuck transaction will be canceled. 

For more information please visit:

https://support.metamask.io/hc/en-us/sections/360014010851-Troubleshooting 

https://metamask.io/faqs/ 

Was this article helpful?