*Paid Advertisement. Not financial advice. RugDoc is not responsible for the projects showcased here. DYOR and ape safu.

How to fix a stuck Metamask transaction

You might have experience with sending a transaction in Metamask, of which the status stayed pending in the activity tab. Whenever this happens, it will block any additional transactions as the transactions are queued. Worry not! In this article we will explain how you can fix this and avoid it in the future.

Matic pending transaction

Activate Nonce Settings in Metamask #

In order to be able to fix the stuck transaction, you have to overwrite it with a new transaction that has a higher gas price. Every transaction has a unique number (nonce) which increases per transaction. As long as the transaction isn’t sent to the blockchain, which basically is the case when it’s stuck, it can be overwritten by sending a new transaction with the same NONCE.

By default this setting is deactivated in Metamask, so let’s activate it by opening the “Menu” (Circle on the right side) and scrolling to “Settings” (Last entry in the list).

Metamask settings

Choose “Advanced” and scroll to “Customize transaction nonce”. Activate this to “ON” and go back to the main Metamask window.

Customize transaction nonce

Get the current Nonce #

After activating the NONCE setting we can start creating the new transaction. First we have to look what NONCE is used in the stuck transaction. We have to choose the first transaction that has been stuck, as we only can overwrite the first one (all other are processed after).

Select the stuck transaction in the “Activity” tab of the main Metamask window.

Select stuck transaction

You can read the Nonce under the “transaction” info. Write down this nonce as we will need this number to create the new transaction.

Transaction nonce

Create a new transaction #

Now that we know the Nonce of the stuck transaction, which we want to overwrite, we can create our new transaction. Open Metamask and copy your own address. You need to send a small amount of the native chain token to yourself (for simplicity).

Copy wallet address

After you’ve copied your address, click on “Send”. This will open up the address book. Paste you own address here, enter a small amount and increase the “Gas Price” to a higher value than the stuck transaction (check the transaction details of the stuck transaction). This is needed as the new transaction must have higher gas in order to overwrite the old one, as higher priced transactions gets processed earlier. After you’ve filled the field you can click on “Next”.

Select token and gas price

Edit the Nonce of the new transaction #

In the next window we can edit the Nonce to the same value like the stuck transaction. Now you can “Confirm” the transaction and watch the stuck transaction disappear.

Set the nonce.

Now you know how you can fix a stuck transaction in Metamask. If it does not work on the first try, repeat the steps and increase the Gas Price, as sometimes the networks are congested. You can avoid stuck transactions by increasing the Gas Price for each transaction, as the value in Metamask is an average Gas Price suggestion which, in case the network is congested, is sometimes not high enough. We hope this helps you the next time you face this issues. Stay safe !

Updated on January 17, 2022
How do you feel about this article?
 

Leave a Reply

*Paid Advertisement. Not financial advice. RugDoc is not responsible for the projects showcased here. DYOR and ape safu.

Our mission here at RugDoc is to screen for hard rug code that results in 100% theft of ALL underlying funds for ALL participants.

This is the ONE part of the due diligence process that most people cannot simply do on their own as it costs thousands of dollars to hire a senior solidity developer to look over a farm for safety.

A project coin with terrible code can go up in price, and a project with good code and a good team can also go down in price.

Do NOT use our ratings to refer to your likelihood in making money if you invest in the project. They are ONLY in reference to code safety.

Everything else beyond code safety is YOUR responsibility to go do research on. We just make sure the casino you’re betting in won’t rob you before you even get to place a bet.

Our reviews for projects are organized into a few colors.

🟢 Least Risk
These projects are the least likely to hard or soft rug. Usually reserved for cornerstone projects of an ecosystem where it makes no financial sense for them to rug in any manner as they make more money just being legit.

🔵 Low Risk
These projects are usually established projects in an ecosystem that have a track record of success or have KYC’d to us or other authoritative sources in the real world. As a result, it is extremely unlikely for them to soft rug or hard rug their projects. The projects can still fail and the token price can go down, but usually more as a result of natural market forces.

⚪️ Some Risk
This is the default rating for projects with unknown teams but have code that is unlikely to have hard rug risk. Since the team is unknown and doesn’t have a track record of success, it’s entirely possible that they may try to soft rug by dumping tokens, abandoning the project, etc. Even a last minute contract swap to a malicious contract is possible. The only thing that is unlikely is a complete hard rug as long as you are 100% sure you deposit into the contract we review.

🟠 Medium Risk
Similar to Some Risk, but the underlying code itself is custom enough or complex enough that it warrants an elevated risk rating that needs deeper research. Make sure you read every point presented to make sure you’re comfortable with that before entering. Still unlikely to hard rug, but more chances of custom code behaving incorrectly and causing other issues.

🔴 High Risk
Project contains code or practices that are HIGHLY LIKELY to lead to catastrophic losses as they are right now. Make sure you read the description carefully as we will always warn what these issues are. If you see the words Hard Rug anywhere in the review, STAY FAR AWAY!

⚫️ Not Eligible
We reserve the right to not review exceedingly complex projects that would require tens of thousands of dollars of senior security analyst man hours. Typically these are projects that deal with leverage, lending, options, derivatives, and anything that is overly complex and which requires tons of peer reviews and audits from top audit companies.

Search

🟢 For owners who have made impactful changes and would like an update to their farm review:

1️⃣ Use #update at @RugDocChat with your description and proof of changes and it will be forwarded to our scanners.

2️⃣ This does not guarantee a change in your review.

3️⃣ Owners who have difficulty solving the issues can consider our Consultation Package - please contact @BaymaxCrypto on Telegram to discuss.