Tx Doctor / Solana error library / Not enough token balance
Solana error: Not enough token balance (0x1)
The token account does not hold enough of the token to cover the transfer, or the amount was already spent by an earlier instruction in the same transaction.
Why it happens
- The amount in the swap or transfer is larger than the balance, including the case where two instructions in one transaction compete for the same tokens.
- The value you see in your wallet may include tokens that are still locked in an open order, or a balance the interface rounded up.
- Token-2022 tokens can also carry a transfer fee, so the amount that arrives is smaller than the amount you sent.
How to fix it
- Refresh the wallet balance and retry with a slightly smaller amount - leave a little room for fees and rounding.
- If you just moved these tokens in another tab, wait for that transaction to confirm first.
- For Token-2022 mints, add the transfer fee to the amount you send.
What it looks like in the logs
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0x1
Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.
Diagnose my transaction