Tx Doctor / Solana error library / Zero liquidity
Solana error: Zero liquidity (0x1777)
The liquidity amount computed to zero. The deposit is too small for the bin range, or the position has nothing left to withdraw.
Why it happens
- Deposit amounts are dust compared with the bin's price scale, so the liquidity units round to zero.
- The position was already fully withdrawn.
- A single-bin deposit skipped the side of the pair that the bin actually needs.
- Decimal mismatch turned a normal-looking amount into a tiny integer.
How to fix it
- Increase the deposit, or widen the bin range so the same funds produce liquidity.
- Confirm the position's current liquidity before withdrawing.
- Match the deposit ratio the bin requires — a single bin only needs one side at its price.
- Verify base-unit amounts and mint decimals.
What it looks like in the logs
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo failed: custom program error: 0x1777 RPC simulation: Transaction simulation failed: Error processing Instruction: custom program error: 0x1777 Wallet UI: "Transaction failed" — custom program error 0x1777 (6007)
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 | 0x1777 = 6007 |
|---|---|
| Jupiter | Invalid token output index |
| Raydium CPMM | Not support token_2022 mint extension |
| Pump.fun | The program is not initialized |
| Raydium LaunchLab | Migration type mismatch |
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
Zero trading tokens
Meteora AMM 6006 (0x1776)
Not the owner of the LP token account
Meteora AMM 6064 (0x17b0)
Pair insufficient liquidity
Meteora DLMM 6012 (0x177c)
Position is not empty
Meteora DLMM 6030 (0x178e)
Cannot find non-zero liquidity bin array id
Meteora DLMM 6037 (0x1795)
Position not empty — cannot close
Raydium CLMM 6003 (0x1773)