Tx Doctor / Solana error library / Not enough SOL to pay the fee

InsufficientFundsForFee

Solana error: Not enough SOL to pay the fee (InsufficientFundsForFee)

The fee payer did not have enough SOL to cover the network fee plus the rent for any new accounts the transaction creates.

Why it happens

How to fix it

  1. Send a small amount of SOL to the wallet and retry - 0.01 SOL covers hundreds of simple transactions.
  2. If you are closing accounts to recover rent, do that first and use the recovered SOL for the next transaction.
  3. Check that you are using the same wallet as the fee payer that the interface expects.

What it looks like in the logs

Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.

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

Account would not be rent exempt

Token 0x0

Compute budget exceeded

ProgramFailedToComplete

Not enough token balance

Token 0x1