Transaction failed but the gas was still taken
The transaction reverted, you got nothing, and the fee left your wallet anyway.
What is actually happening
Gas pays validators for the computation they performed. They performed it, the contract rejected the result, and the work still happened. This is how the network is designed rather than a fault.
How to fix it
- Open the transaction on the block explorer and read the revert reason. It usually names the actual problem.
- For a swap, the usual cause is slippage: the price moved past your tolerance while the transaction was in flight. Raise slippage slightly and retry.
- For a token with a transfer tax, slippage must exceed the tax or every swap reverts.
- For an NFT mint, the supply probably sold out while your transaction was queued.
Raising slippage costs you money on every trade and invites sandwich attacks. Raise it in small steps, not to twenty percent because a guide on the internet said so.
RELATED
Transaction stuck pendingYour transaction has sat as Pending for minutes or hours and nothing is moving.Token is not showing in my walletThe block explorer shows the tokens arrived, but the wallet shows nothing.I sent tokens to the wrong networkYou withdrew to your address but picked the wrong chain, and the balance is not where you expected.My swap keeps failingEvery attempt reverts, sometimes before you even confirm.
RISK WARNING
Crypto assets are highly volatile and largely unregulated. You can lose everything you put in.
Nothing on this page is financial, investment or tax advice, and nothing here is a recommendation
to buy or sell any asset. Do your own research and never commit money you cannot afford to lose.
