Independent discussion of crypto, wallets, cards and markets
Forum Home > Crypto Trading & Markets > Ethereum > Understanding EVM reverts and why your transaction cost money anyway
Understanding EVM reverts and why your transaction cost money anyway43 replies · 2,786 views
Thread ToolsShow Printable Version · Subscribe to this Thread · Search Thread
Where to open an account: Open a Trustee account.

Understanding EVM reverts and why your transaction cost money anyway

A failed transaction still costs gas. That is not a bug, and understanding why

stops you blaming the network randomly.

Why failed work is still paid for

Miners execute every transaction they include, whether it succeeds or not. The

computation happened. Gas pays for execution, not for outcome. A revert undoes

state changes but not the work done reaching them.

The common causes

  • Not enough ETH to complete the swap or transfer
  • Slippage tolerance exceeded during a volatile move
  • Calling a function with wrong parameters
  • Interacting with a contract that expects a state you did not set
  • Approving a token you already approved

How to avoid burning fees

  1. Check your balance covers the amount plus gas before submitting
  2. Set slippage deliberately rather than at maximum
  3. Read what a contract call will do before signing, especially for unfamiliar apps
  4. Revoke stale approvals instead of submitting duplicates
  5. If a transaction is stuck, speed it up rather than submitting a second one

The stuck transaction problem

Submitting the same nonce twice creates a replacement, not a duplicate. If you do

not understand nonce handling you can end up with several pending transactions

each costing gas. Most wallets handle this now, but not all.

The takeaway

Reverts are usually your error, not the network's. The fee is the price of

discovering that on chain. A small test transaction before a large one is the

cheapest insurance available.

Thread Statistics43 replies · 2,786 views