Why did my Solana transaction fail and how can you find out on Solscan?
A swap shows a red "failed" label, the funds you meant to move haven't gone anywhere, and your wallet offers little more than a vague error message. It's a common experience on Solana, and the full explanation is usually sitting on the blockchain, one search away.
The key is working out which of two situations you're in: a transaction that reached the network and failed, or one that never made it on-chain at all. Solscan can usually tell you which, and often why.
What "failed" can mean on Solana
In the first case, the transaction reached a validator, was included in a block, and was then rejected during execution because a condition it depended on wasn't met. This kind of failure is permanently recorded on-chain, with an error and program logs attached to it.
In the second case, the transaction never lands. Every Solana transaction references a recent blockhash that stays valid for about 150 blocks, roughly 60 to 90 seconds. If the transaction isn't processed within that window, it expires and is dropped. A transaction like this typically doesn't appear on any explorer, because it never made it onto the blockchain.
Common reasons a Solana transaction fails
For transactions that land and then fail, the usual causes are not enough SOL to cover the network fee (plus a small deposit when a new token account has to be created), slippage tolerance being exceeded during a swap because the price moved too far, or the state of an account changing between signing and execution. A transaction can also run out of its compute limit, which is more common with complex operations.
For transactions that never land, the usual causes are an expired blockhash, often from slow signing, hesitating over the confirmation prompt, or a lagging connection, and network congestion. When the network is busy, a transaction with a low optional priority fee can be dropped before a validator ever processes it.
How to find out why on Solscan
Start by copying the transaction signature from your wallet's activity history or from the app you used, then paste it into the Solscan search bar. If the transaction landed, the page typically shows a failed status instead of a success, and it may point to the instruction that failed.
Further down the page, look for sections such as instruction details or log messages, whose exact names and layout can change over time. The logs show which program ran and where it stopped, usually as an instruction number along with an error name or code. Error codes are specific to each program, so the same number can mean different things in different programs, and the program's documentation helps decode it. If Solscan can't find the signature at all, the transaction may not have landed, or may not have landed yet.
What happens to your funds and the fee
Solana executes a transaction as a single unit. If any instruction in it fails, every change it would have made is discarded, so your token balances stay as they were. Typically, the only cost is the small network fee for the attempt, which is still charged because validators did the work of processing it.
A transaction that expired and never landed generally isn't charged a fee, since it never reached the chain. Before trying again, though, it's worth checking Solscan for the first attempt, because a transaction that looks stuck can still go through, and sending it twice may lead to a duplicate transfer.
WEEX Reminder: check before you retry
WEEX reminds users to confirm the status of the first attempt on Solscan before resubmitting, and to keep a small SOL balance in the wallet to cover fees. Failed transactions also attract scams: anyone who offers to "fix" a failed transaction and asks for a seed phrase or private key is not legitimate, however official they appear, and no genuine troubleshooting ever requires either one.
Conclusion
A failed Solana transaction isn't a mystery once you search its signature. Solscan can show whether it failed on-chain or never landed, and the logs often point to the instruction that stopped it. In most cases the funds stay where they were and only a small fee is lost, so the practical habit is to check first, then retry.
FAQ
1. Do I lose my tokens when a Solana transaction fails?
Generally no. Solana executes a transaction as a single unit, so if any instruction fails, its changes are discarded and your balances stay as they were. Typically only the network fee is lost.
2. Do I still pay a fee for a failed Solana transaction?
If the transaction landed on-chain and failed, a small network fee is typically still charged. If it expired and never landed, it generally isn't charged, and it usually won't appear on Solscan.
3. Why can't I find my transaction on Solscan?
It may not have landed yet, it may have expired or been dropped, or the signature may have been copied incorrectly. Check the signature, wait a short while, and compare it with your wallet's status.
4. Where do I find the error on Solscan?
Search your transaction signature, then look for the failed status and for sections such as instruction details or logs, which typically show which instruction failed and the error returned. Layout and labels may change over time.
5. Is it safe to retry a failed Solana transaction?
Often yes, but check Solscan first to confirm the original didn't succeed or isn't still pending. A transaction that looks stuck can still go through, and resending too early can result in a duplicate transfer.