Tx Doctor / Solana error library / Bin arrays must be continuous
Solana error: Bin arrays must be continuous (0x178c)
The bin arrays supplied have a gap: the ones needed for this operation must be consecutive so the program can walk from one to the next without missing a range.
Why it happens
- One array in the middle was omitted because it holds no liquidity — but continuity is required regardless of whether a bin is empty.
- Arrays were fetched in two separate calls and one of them was stale.
- The account list was trimmed to save transaction size.
- Swap direction requires a descending sequence and the list was sorted ascending.
How to fix it
- Pass every array between the start and end bin, including arrays with no liquidity.
- Fetch the whole range in a single call so indices are consistent.
- Use the SDK's sequence builder, which fills gaps automatically.
- If the transaction is too large, reduce the trade so it spans fewer arrays.
What it looks like in the logs
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo failed: custom program error: 0x178c RPC simulation: Transaction simulation failed: Error processing Instruction: custom program error: 0x178c Wallet UI: "Transaction failed" — custom program error 0x178c (6028)
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 transactionRelated Solana errors
Source and destination are the same
Meteora AMM 6019 (0x1783)
Incorrect associated token account
Meteora AMM 6056 (0x17a8)
Invalid zap accounts
Meteora AMM 6061 (0x17ad)
Bin array not found
Meteora DLMM 6009 (0x1779)
Invalid bin array
Meteora DLMM 6027 (0x178b)
Not enough tick array accounts
Raydium CLMM 6023 (0x1787)