Why did my Solana transaction fail? The 6 usual causes
Slippage, an expired blockhash, compute limits, missing SOL for rent: how to tell which one killed your Solana transaction, and the fix for each.
· 2 min read
A failed Solana transaction looks the same in every wallet: a red "Failed" and very little else. The real reason is always written down, though. Every transaction that reaches the chain keeps its program logs, and the line that explains the failure is in there. This guide covers the causes we see most often and how to recognise each one.
First: did it land at all?
There are two very different kinds of failure. A transaction that landed and failed has a record on chain: an explorer shows it, the network fee was charged, and nothing else changed. A transaction that never landed has no record at all: explorers say they can't find it, no fee was charged and no funds moved. If you can't find your signature anywhere, read Blockhash not found.
1. Slippage: the price moved
This is the most common failure for swaps. Your wallet set a minimum amount you would accept; by the time the swap ran, the pool would have given you less, so the program refused. On Jupiter the log says SlippageToleranceExceeded (error 6001, shown in hex as 0x1771). Nothing was swapped. See Slippage tolerance exceeded.
2. Out of compute
Every transaction asks for a compute budget. If the programs need more than that, the runtime stops them part way and the log ends with something like exceeded CUs meter at BPF instruction. The fix is a higher compute unit limit, not a higher priority fee. See Compute budget exceeded.
3. Not enough SOL (often for rent)
Either the amount really is more than you hold, or the transaction would leave an account below the minimum balance Solana requires. Creating a token account for a token you have never held locks about 0.002 SOL. See Insufficient funds and rent.
4. An account that doesn't exist yet
Programs built with Anchor log AccountNotInitialized (error 3012) when an account they expect hasn't been created. This usually means a step that creates the account was skipped or failed earlier.
5. The blockhash expired
Each transaction carries a recent blockhash, valid for 150 blocks. If it isn't processed in time, the network drops it. This is the "never landed" case above.
6. A program-specific error code
Anything else shows up as custom program error: 0x.... The code only means something to the program that raised it, so you have to look it up in that program's error list. See How to read a custom program error.
How to find the real reason
- Copy the transaction signature from your wallet's activity view (the long string, 87 or 88 characters).
- Open it in an explorer such as Solscan or Solana Explorer and scroll to the program logs.
- Find the first line that says
failed. Outer programs repeat the error, so the first one is the root cause. - Or paste the signature into Rektopsy, which does those steps for you and cites the exact log line for every claim.
Rektopsy only reads public data. It never asks you to connect a wallet or sign anything, and you should be wary of any "transaction fixer" that does.
Quick answers
Do I lose money when a Solana transaction fails?
If it landed and failed, you pay the network fee and nothing else changes: the swap or transfer is rolled back. If it never landed, nothing is charged at all.
Where can I see why my Solana transaction failed?
In the program logs of the transaction, shown by explorers such as Solscan and Solana Explorer. The first line that says 'failed' is the root cause.
What is the most common reason a Solana swap fails?
Slippage: the price moved past the minimum you set, so the swap program refused to execute. On Jupiter this is error 6001, SlippageToleranceExceeded.