Rektopsy

Solana "insufficient funds" when your wallet has SOL: rent explained

Why Solana says insufficient funds when you can see SOL in your wallet: fees, the rent-exempt minimum, and the ~0.002 SOL a new token account needs.

· 1 min read

0.00203928 SOL: the rent deposit a token account needs

"Insufficient funds" on Solana doesn't always mean you're trying to send more than you have. Often the problem is what would be left over.

Three different errors with similar names

  • System Program, Transfer: insufficient lamports X, need Y: the SOL transfer itself is bigger than the balance. The log gives both numbers, so the shortfall is exact.
  • SPL Token, error 1 (InsufficientFunds, shown as 0x1): the token account holds fewer tokens than the transfer.
  • Runtime, InsufficientFundsForRent: after the transaction, an account would sit below the minimum balance it must keep.

What is rent?

Every account on Solana must hold a minimum amount of SOL proportional to its size, called the rent-exempt minimum. A standard token account (165 bytes) needs 0.00203928 SOL. That SOL is locked, not spent: you get it back if the account is closed.

This is why your first purchase of a new token costs a little more: the transaction creates a token account for it, and that account needs its deposit.

How to fix it

  1. Leave a buffer of SOL in your wallet for fees and new accounts instead of swapping your whole balance.
  2. If you're sending your entire SOL balance, send slightly less so the account can pay the fee.
  3. Closing token accounts you no longer use returns their deposit, but only use your wallet's built-in tools. Fake "reclaim SOL" sites are a common drainer lure.

Error code 0x1 means different things in different programs: insufficient funds in SPL Token, but something else elsewhere. Always check which program raised it. See How to read a custom program error.

Quick answers

Why does Solana say insufficient funds when I have SOL?

Usually because the transaction would leave an account below its rent-exempt minimum, or not enough for the fee, even if your balance covers the amount itself.

How much SOL does a token account need?

A standard token account needs 0.00203928 SOL as its rent-exempt deposit. It is returned if the account is closed.

What does custom program error 0x1 mean?

It depends on the program. In SPL Token it is InsufficientFunds; other programs use code 1 for other errors.

Sources

"Slippage tolerance exceeded" on Solana: what it means and how to fix it"Blockhash not found" and expired transactions on SolanaSolana "compute budget exceeded": the fix is the limit, not the fee