What the error means
Error processing Instruction N: custom program error: 0xb
You tried to close a token account that still holds tokens. Only empty token accounts can be closed to reclaim rent.
| Where it comes from | SPL Token program |
| Code | 11 (0xb) NonNativeHasBalance |
How to fix it
- Send, sell or burn the remaining tokens first.
- For dust you do not want, burn it, then close the account.
- Account cleaners show which accounts are empty; see how to close empty token accounts.
If that is not it
- If the token is Token-2022 with transfer fees, withheld fees can also block closing, see cannot close account with withheld fees.
More fixes: how to decode any Solana error code and why Solana transactions fail.
Source
Error text and code from SPL Token program error definitions (solana-program/token), read on 24 October 2026.


