LIVE
$43,496▼1.2%

What Are the Reasons for Failed Transactions?

Beginner4 min readTransactions & fixesCryptoJazz Academy
What Are the Reasons for Failed Transactions?

In short

The reasons for failed transactions, in plain English: what stops one before it starts, why a smart contract refuses, and how to tell which happened.

Transactions fail for a short list of reasons, and they fall into two groups. Either the network stopped your transaction because of how it was built, or a smart contract looked at what you asked for and refused. In both cases your coins stayed exactly where they were, and in both the fee is gone, because the attempt itself used real computing work on a public network like Ethereum.

What stops a transaction before it even starts?

These are the mechanical failures, and they come from the numbers attached to your transaction rather than from the app you were using:

  • Out of gas. You set a ceiling on how much work to pay for, the job needed more, and everything stopped at the ceiling. This is the most expensive kind of failure, because the whole ceiling is spent.
  • Not enough to cover the fee. Sending your entire ETH balance leaves nothing for gas. A wallet needs the amount plus the fee.
  • Out of order. Each transaction from your wallet carries the next number in a sequence. If an earlier one is stuck, the later ones wait behind it and can be dropped.
  • Too little offered. A fee set below what the network is currently charging leaves your transaction sitting unprocessed until it falls out of the queue.

Why would a smart contract refuse?

Because one of its rules was not satisfied, and a contract that cannot finish cleanly undoes everything instead. The classic cases are a missing approval — Uniswap cannot move your tokens until you have said it may — a price that drifted outside the slippage you allowed, a swap deadline that expired while you waited, a lending position on Aave that no longer meets the contract's limits, or a mint that sold out while your transaction was in the queue. None of these is a bug. Each is the contract protecting you from a half-finished trade.

How do you tell which one it was?

A block explorer such as Etherscan shows the failed transaction with a red status and, where a contract was involved, the error message the contract itself produced. Mechanical failures show up in the gas figures; contract refusals show up in that message.

When something fails, read the reason before you retry, and change one thing at a time. For the contract side in detail, see what to do when a smart contract rejects you, and for the fee question everyone asks first, why a failed transaction is charged.