Tx Doctor / Solana error library / Invalid input or output index
Solana error: Invalid input or output index (0x1776)
The route referenced a token position that does not exist in the account list - a malformed route rather than a market problem.
Why it happens
- The integrator built a route with an index out of range.
- Token ordering changed between quote and swap construction.
- A custom script hard-coded indexes that no longer match.
How to fix it
- Re-quote and rebuild the transaction instead of reusing a cached route.
- Use the official SDK to construct the swap.
- Report the case to the interface if it repeats on a simple swap.
What it looks like in the logs
Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 failed: custom program error: 0x1776
Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.
Diagnose my transaction