Tx Doctor / Solana error library / Exceeded desired slippage limit
Solana error: Exceeded desired slippage limit (0x1e)
The pool's price crossed the limit you set, so the AMM refused the fill instead of executing at a worse rate. Nothing was swapped and only the network fee was spent.
Why it happens
- The quote you signed and the state the pool had when the transaction landed were different. On a busy pair that gap is often more than the default 0.5% tolerance.
- Your trade was large relative to the active liquidity, so your own order moved the price past the limit as it filled.
- Someone swapped the same direction just ahead of you and shifted the price — the honest description of a sandwich, and also what ordinary bot competition looks like.
- Direct integrations often compute minAmountOut once at quote time and reuse it across retries, which guarantees a stale limit.
How to fix it
- Refresh the quote and send again in the same minute. Most 0x1e failures succeed on the second attempt with no setting change at all.
- If it keeps failing, raise tolerance one step (0.5% → 1.0% for majors, 1% → 2% for thin pairs). Do not jump to 10%: that is how you get filled at a bad price on purpose.
- Split a large order into several smaller swaps so each one stays inside the pool's comfortable depth.
- Attach a priority fee so the transaction lands in the next block instead of ageing in the queue while the price walks away.
What it looks like in the logs
Program 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8 failed: custom program error: 0x1e RPC simulation: Transaction simulation failed: Error processing Instruction: custom program error: 0x1e Wallet UI: "Transaction failed" — custom program error 0x1e (30)
One failure, three places it shows up: the raw transaction log, the RPC simulation error, and the wallet's short message. Match on the code, never on the wording.
The same number means something else on another program
Anchor assigns custom error codes by enum order starting at 6000, so this number is local to this program. The rows below show what the very same number means on the other programs.
| Program | 0x1e = 30 |
|---|---|
| Token-2022 | Transfer fee exceeds maximum |
What this means for your funds
Solana transactions are atomic: if any instruction fails, every state change in that transaction is reverted, so token balances end exactly where they started. The network fee is still charged, because validators did the work of executing and rejecting it. A failed transaction never moves your tokens to someone else.
Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.
Diagnose my transactionRelated Solana errors
Price slippage check
Raydium CLMM 6017 (0x1781)
Too little output received
Raydium CLMM 6018 (0x1782)
Too much input paid
Raydium CLMM 6019 (0x1783)
Exceeded slippage tolerance
Raydium LaunchLab 6004 (0x1774)
Exceeds desired slippage limit
Raydium CPMM 6005
Position not empty — cannot close
Raydium CLMM 6003 (0x1773)