Metamask: Guide to Unblock an Ethereum Network Pending Transaction

in LeoFinance4 years ago

transac0.jpg

One of the hottest topics these days was the transactions gas price on the Ethereum Network. While that cost is down a bit today from last week, it is still insane. Due to this, among other things, the Ethereum Network becomes congested and many times transactions can be pending for a long time without confirming.

To find out why this happens, we have to know what gas is and how it works on the Ethereum network.
Gas is the internal unit that defines the price of putting into operation the power to calculate and run the Ethereum network.
The cost of gas can be seen at Ethgasstation

transac1.jpg

The more “gas units” we offer for a transaction, the greater the chance that it will be confirmed faster.
The network works the same as any asset, prices go up when there is more demand and more is paid for your transaction to occur, and they go down when the opposite happens.
So, if we use an amount of GAS less than that indicated by “STANDARD”, the transaction could be “blocked” because the miners in charge of processing the transactions can leave it as pending, choosing others of higher value.
But if we want the transaction to be faster we can "dropping and replace it" in the following way:

As an example we are going to go to Uniswap to exchange ETH for a token.

transac2.jpg

When we click Swap, Metamask automatically opens, and there we will change the amount of GAS for a very low value, for example 20 Gwei, and click Confirm.

transac3.jpg

With the transaction code we go to the Ethereum transaction explorer, Etherscan, to see the status.

transac4.jpg

If we see that the Estimated Confirmation Duration is too long, we can cancel this transaction, sending another transaction to drop and replace the previous one. For that it is important to copy the Nonce of the transaction, a number that we will find by going down in the previous screen and clicking on the option “click to see more”.

transac5.jpg

Now we go back to Metamask and self-send a 0 ETH transaction but in this case with a higher GAS rate than the one indicated on ethgasstation as “TRADER”. For this we use our own Metamask address, manually placing the same Nonce of our transaction that we previously consulted in Etherscan.

transac6.jpg

It may happen that you do not have the Custom Nonce option enabled. You can do it manually in Settings> Advance Settings> Turn ON Nonce as seen in the following image:

transac7.jpg

Once we send the new transaction with the same Nonce to drop the previous one, we enter Etherscan with the ID to verify the status.

transac8.jpg

Finally we can see that the blocked transaction changed to dropped and replaced.

transac9.jpg

And that's it: we already have our Ethereum at home again.

I hope this post is useful to you, and remember: read, learn, enjoy, follow me on my new Twitter (or the less important one: tip me if you liked it)... and with or without Metamask, be happy!

Sort:  

Congratulations @crypt0trips! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You received more than 800 upvotes. Your next target is to reach 900 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @hivebuzz:

HiveBuzz supports meetups of the Hive UK Community
Feedback from the September 1st Hive Power Up Day