Tx Doctor / Solana error library / Swapped amount is exceeded max swapped amount

Meteora DLMM 6053 (0x17a5)0x17a5

Solana error: Swapped amount is exceeded max swapped amount (0x17a5)

The swap is larger than the pool's configured per-transaction cap. DLMM pools can enforce a maximum swap size as an anti-manipulation guard.

Why it happens

How to fix it

  1. Split the order into several swaps under the cap.
  2. Route through an aggregator that splits across pools.
  3. Read the pool's cap from state if you are integrating, and size legs accordingly.
  4. Check whether the cap changed if your usual size suddenly fails.

What it looks like in the logs

Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo failed: custom program error: 0x17a5

RPC simulation:
  Transaction simulation failed: Error processing Instruction : custom program error: 0x17a5

Wallet UI:
  "Transaction failed" — custom program error 0x17a5 (6053)

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.

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 transaction

Related Solana errors

Exceeded slippage tolerance

Meteora AMM 6004 (0x1774)

Pool disabled

Meteora AMM 6015 (0x177f)

Invalid pool type

Meteora AMM 6051 (0x17a3)

Exceeded amount slippage tolerance

Meteora DLMM 6003 (0x1773)

Exceeded bin slippage tolerance

Meteora DLMM 6004 (0x1774)

Insufficient out amount

Meteora DLMM 6039 (0x1797)