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 Complete a W‐9 Tax Form: 9 Steps (with Pictures) - wikiHow
Are You a Freelancer or Solopreneur? Tax Basics You Need to Know
Barstool Sports Gif
Mickey Moniak Walk Up Song
Asist Liberty
Algebra Calculator Mathway
What Are the Best Cal State Schools? | BestColleges
Falgout Funeral Home Obituaries Houma
Guardians Of The Galaxy Showtimes Near Athol Cinemas 8
Cvs Devoted Catalog
State Of Illinois Comptroller Salary Database
Lost Pizza Nutrition
Nashville Predators Wiki
Pro Groom Prices – The Pet Centre
Uhcs Patient Wallet
National Weather Service Denver Co Forecast
Dutch Bros San Angelo Tx
Craigslist Free Stuff Greensboro Nc
Joann Ally Employee Portal
Busted Mcpherson Newspaper
The EyeDoctors Optometrists, 1835 NW Topeka Blvd, Topeka, KS 66608, US - MapQuest
Bjerrum difference plots - Big Chemical Encyclopedia
eugene bicycles - craigslist
پنل کاربری سایت همسریابی هلو
Weathervane Broken Monorail
12657 Uline Way Kenosha Wi
Tottenham Blog Aggregator
Ts Modesto
Alternatieven - Acteamo - WebCatalog
Best New England Boarding Schools
Autopsy, Grave Rating, and Corpse Guide in Graveyard Keeper
Dumb Money, la recensione: Paul Dano e quel film biografico sul caso GameStop
Navigating change - the workplace of tomorrow - key takeaways
M3Gan Showtimes Near Cinemark North Hills And Xd
Royals op zondag - "Een advertentie voor Center Parcs" of wat moeten we denken van de laatste video van prinses Kate?
Free Robux Without Downloading Apps
Why The Boogeyman Is Rated PG-13
Chs.mywork
Craigslist Georgia Homes For Sale By Owner
How to Draw a Sailboat: 7 Steps (with Pictures) - wikiHow
The Banshees Of Inisherin Showtimes Near Reading Cinemas Town Square
Wait List Texas Roadhouse
303-615-0055
boston furniture "patio" - craigslist
Juiced Banned Ad
Pgecom
Craigslist St Helens
R/Gnv
Accident On 40 East Today
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Costco Tire Promo Code Michelin 2022
Provincial Freeman (Toronto and Chatham, ON: Mary Ann Shadd Cary (October 9, 1823 – June 5, 1893)), November 3, 1855, p. 1
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.