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 Netspend Overdraft Protection Works
What Is Quantum Computing? How Does It Help In Solving Complex Problems? - Nemo IT Solutions
Kostner Wingback Bed
Bleak Faith: Forsaken – im Test (PS5)
Black Gelato Strain Allbud
10 Popular Hair Growth Products Made With Dermatologist-Approved Ingredients to Shop at Amazon
Do you need a masters to work in private equity?
Mylaheychart Login
Cumberland Maryland Craigslist
THE 10 BEST River Retreats for 2024/2025
Visustella Battle Core
Locate Td Bank Near Me
Why Is Stemtox So Expensive
Miami Valley Hospital Central Scheduling
Aces Fmc Charting
Superhot Unblocked Games
Darksteel Plate Deepwoken
2024 U-Haul ® Truck Rental Review
New Stores Coming To Canton Ohio 2022
Bx11
Labby Memorial Funeral Homes Leesville Obituaries
Culver's Flavor Of The Day Taylor Dr
Canvasdiscount Black Friday Deals
Bill Remini Obituary
Craig Woolard Net Worth
Sessional Dates U Of T
Catchvideo Chrome Extension
Temu Seat Covers
Dexter Gomovies
Lcsc Skyward
Kamzz Llc
Willys Pickup For Sale Craigslist
Half Inning In Which The Home Team Bats Crossword
Max 80 Orl
Of An Age Showtimes Near Alamo Drafthouse Sloans Lake
2015 Chevrolet Silverado 1500 for sale - Houston, TX - craigslist
#scandalous stars | astrognossienne
Diana Lolalytics
Tenant Vs. Occupant: Is There Really A Difference Between Them?
Oreillys Federal And Evans
Michael Jordan: A timeline of the NBA legend
Search All of Craigslist: A Comprehensive Guide - First Republic Craigslist
Let's co-sleep on it: How I became the mom I swore I'd never be
O'reilly's El Dorado Kansas
Weather Underground Cedar Rapids
Craigslist Central Il
Grand Park Baseball Tournaments
Madden 23 Can't Hire Offensive Coordinator
Erica Mena Net Worth Forbes
Diccionario De Los Sueños Misabueso
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.