Tx Doctor / Solana error library / Account would not be rent exempt

Token 0x00x0

Solana error: Account would not be rent exempt (0x0)

The token account would end up below the rent-exempt threshold, which the token program refuses to allow.

Why it happens

How to fix it

  1. Leave at least the rent-exempt minimum in the account.
  2. Close the account properly instead of draining it.
  3. Top up the account so it clears the threshold.

What it looks like in the logs

Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0x0

Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.

Diagnose my transaction

Related Solana errors

Not enough SOL for rent

InsufficientFundsForRent

Token account is frozen

Token 0x11

Account not initialized or not found

AccountNotFound

Compute budget exceeded

ProgramFailedToComplete