Failed Transactions on Ethereum (2024)

Why ETH Transactions Fail and What to do About it

When a transaction fails on the Ethereum network, you are still charged. Transactions fail when there isn’t enough gas to pay for a transaction, or when a smart contract rejects a transaction.

You are still charged for failed transactions because miners need to confirm transactions to the chain whether they succeed or fail. So, you are paying for that regardless of whether your transaction goes through.

TIP: The transaction fee you pay on the Ethereum network is called “gas” (gas is a small amount of ETH paid for Ethereum transactions measured in units of ETH called GWEI).

The Two Main reasons For Failed Transactions: Slippage and Not Adding Enough Gas

If an approval or simple transaction failed, it is probably a gas issue. If your transaction failed on UniSwap or another DEX during a trade, it’s probably a slippage issue.

If you are getting failed transactions, you either need toadd more gas by customizing gas before you start the transaction (you can also “speed up” a transaction by paying more later, for example, click “speed up” in MetaMask) and/or, if you are trading on a DEX, you need to increase slippage (done in settings on DEXs like Uniswap, SuhiSwap, etc.).

I suggest a slippage of at least 3% (but as high as 15% for illiquid pairs) and ‘fast gas’ or custom gas if using MetaMask (or the equivalent if not; check current gas prices to see how much gas is needed right now).

Not paying enough gas: Transactions failing because you didn’t pay enough for the transaction is easy to avoid in most situations. You avoid this by making sure you pay high enough gas fees upfront. In MetaMask, for example, you typically just have to stick with “normal” or “fast,” and this is going to be enough to account for any changes in gas prices. However, you can also check current gas prices and put in a custom gas amount (this can be smart if gas prices are rapidly increasing). For a single transaction or a batch of simple transactions like when you open a Maker Vault, this is basically all you need to know. Rarely if ever, will you have a basic transaction fail (instead, the worst case is you’ll have a slow transaction here or there… which you can speed up by adding more gas). Solution: Try paying more gas upfront or adding more gas to the current transaction to speed it up.

Failed Transactions on Ethereum (1)

Customize gas in MetaMask to avoid failed transactions.

Having a transaction rejected on a DEX: Failed transactions are more likely on “AMM” DEX exchanges like Uniswap or 1Inch. You are executing multiple transactions at once, and the contract rejects the transaction. Sometimes this is a gas issue, but usually, it is a slippage issue (there wasn’t enough liquidity to fill you at the quoted price, so the exchange rejected your transaction). Solution: Adjust slippage tolerance upwards (you may need to go into advanced settings depending on the platform; a suggest at least 3%).

Failed Transactions on Ethereum (2)

Toggle expert mode on and increase slippage tolerance (max slippage) to 3% – 5% (or higher for illiquid pairs) to avoid failed transactions due to slippage (be careful though, you could end up getting a very different price than you intended if you aren’t careful with this).

Conclusion

In other words, if your transaction fails:

  1. You either have a gas problem.
  2. Or, you have a slippage problem.

If you are on Uniswap or another DEX, you probably need to adjust slippage tolerance and not gas. If you are doing a single transaction, you probably have to adjust gas.

If you can adjust both, and especially if prices and gas fees are going wild, you may consider adjusting both gas and slippage to avoid failed transactions.

Failed transactions are most likely to occur during periods of volatility, and each transaction that fails will cost (sometimes a lot).

So if one transaction fails, slow down, refresh prices, adjust slippage and/or gas, and try again.

For more, I suggest checking out Uniswap’s FAQ section.

TIP: This only applies when using web3 wallets, dexes, etc. Centralized exchanges like Coinbase don’t use gas.

TIP: Paying to speed up a transaction can result in the transaction being stuck in some rare cases. Unsticking it can be a pain. You might consider not doing this and focusing on paying more upfront if you can help it. However, generally, if your transaction is being slow, paying to speed it up is the best solution. I personally speed up transactions all the time and have rarely had an issue.

TIP: If the prices of the coins you are trading are moving really fast, you may have to do a transaction very quickly and adjust slippage tolerance way up (for a really illiquid and volatile coin, 15% isn’t unheard of). If gas prices are moving really fast, you may have to overshoot by a good bit. The charts in both cases will clue you in as to what you have to do.

TIP: With slippage, you won’t necessarily incur the full slippage tolerance amount. That is only the max slippage amount. With gas, you will pay what you offer to pay. So… don’t offer to pay more than you are willing to pay, check the current gas fees, and aim toward a reasonable high end, and you’ll almost always be fine.

Failed Transactions on Ethereum (2024)

FAQs

Failed Transactions on Ethereum? ›

The Two Main reasons For Failed Transactions: Slippage and Not Adding Enough Gas. If an approval or simple transaction failed, it is probably a gas issue. If your transaction failed on UniSwap or another DEX during a trade, it's probably a slippage issue.

What happens if a transaction fails on ETH? ›

Even if it fails, the miners must validate and execute your transaction, which takes computational power. You must pay for that computation, just like you would pay for a successful transaction. You can see your transaction fee (gas limit * gas price) in ETH & USD when you search for your transaction on Etherscan.io.

How many Ethereum transactions fail? ›

Transactions on Ethereum are consistently failing at rates of over 1 million per month – despite being paid for. Ethereum's failed transaction count soared by another 1.2 million in May alone. That's up 200,000 from last month's figure and over 2% of all failed transactions in its history.

What happens to failed crypto transactions? ›

Rejected transactions do not appear on the blockchain and are akin to never having taken place. The sender will see the funds instantly return to the address from which they attempted to send. Before retrying the transaction, it is vital to ensure that your fee is adequate.

What is the main problem with Ethereum? ›

The centralization of nodes is one of the biggest problems facing the Ethereum network and should be addressed by making the running of nodes cheaper and easier, according to Ethereum co-founder Vitalik Buterin.

Top Articles
How to create a crypto wallet | Get Started with Bitcoin.com
Tron Wallet (TRX) | Secure TRX Wallet | Trust Wallet
Golden Abyss - Chapter 5 - Lunar_Angel
Hotels Near 625 Smith Avenue Nashville Tn 37203
Methstreams Boxing Stream
My E Chart Elliot
Angela Babicz Leak
Nyu Paralegal Program
Culver's Flavor Of The Day Wilson Nc
THE 10 BEST Women's Retreats in Germany for September 2024
Steve Strange - From Punk To New Romantic
Crazybowie_15 tit*
Acbl Homeport
123 Movies Babylon
Rls Elizabeth Nj
Best Restaurants Ventnor
Aces Fmc Charting
Amelia Bissoon Wedding
C Spire Express Pay
Help with Choosing Parts
Lax Arrivals Volaris
Craigslist Panama City Fl
Nhl Wikia
1v1.LOL - Play Free Online | Spatial
Osborn-Checkliste: Ideen finden mit System
Whitefish Bay Calendar
Band Of Loyalty 5E
Missed Connections Inland Empire
Www.publicsurplus.com Motor Pool
Hermitcraft Texture Pack
Phoebus uses last-second touchdown to stun Salem for Class 4 football title
Tripadvisor Napa Restaurants
Craigslist Rentals Coquille Oregon
Receptionist Position Near Me
Taylored Services Hardeeville Sc
Albertville Memorial Funeral Home Obituaries
Mumu Player Pokemon Go
Http://N14.Ultipro.com
Workday Latech Edu
Flashscore.com Live Football Scores Livescore
Kgirls Seattle
AI-Powered Free Online Flashcards for Studying | Kahoot!
Orion Nebula: Facts about Earth’s nearest stellar nursery
Gun Mayhem Watchdocumentaries
Wilson Tire And Auto Service Gambrills Photos
4k Movie, Streaming, Blu-Ray Disc, and Home Theater Product Reviews & News
Senior Houses For Sale Near Me
Paperlessemployee/Dollartree
Sinai Sdn 2023
Dumb Money Showtimes Near Regal Stonecrest At Piper Glen
Bunbrat
Latest Posts
Article information

Author: Lidia Grady

Last Updated:

Views: 6056

Rating: 4.4 / 5 (45 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Lidia Grady

Birthday: 1992-01-22

Address: Suite 493 356 Dale Fall, New Wanda, RI 52485

Phone: +29914464387516

Job: Customer Engineer

Hobby: Cryptography, Writing, Dowsing, Stand-up comedy, Calligraphy, Web surfing, Ghost hunting

Introduction: My name is Lidia Grady, I am a thankful, fine, glamorous, lucky, lively, pleasant, shiny person who loves writing and wants to share my knowledge and understanding with you.