Custom program error

0xb11

Appears in logs as custom program error: 0xb

SPL TokenTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

NonNativeHasBalance

“Non-native account can only be closed if its balance is zero”

You tried to close a token account that still holds tokens.

Common causes

  • Calling CloseAccount on a token account with a non-zero balance. Only wrapped SOL accounts can be closed with a balance.

How to fix it

  • Transfer or burn the remaining tokens first, then close the account to reclaim its rent.

Decode another error

Try: