If you're experiencing "Insufficient Funds" when trying to pay rent for a Solana transaction, here’s what you need to know:
Why Does This Happen?
-

Account Rent: Solana requires accounts (like wallets or smart contract accounts) to pay rent to stay on the blockchain. If an account doesn’t have enough SOL, it can’t cover this cost.
-
Transaction Fees: Every transaction requires a small fee (~0.000005 SOL), but if you're deploying a program or creating an account, rent costs more.
-
Minimum Balance Requirement: Some actions (like creating a new token account) require a minimum SOL balance (e.g., 0.00203928 SOL for a token account).
How to Fix It
-
Deposit More SOL
-
solana airdrop 1(for devnet, using CLI) -
Fund your wallet with enough SOL to cover rent + transaction fees.
-
Get free SOL from a faucet (if on devnet/testnet):
-
Close Unused Accounts
-
If you have old/unused accounts, close them to reclaim rent:
-
Check Rent Exemption Minimum
-
Calculate how much SOL you need:
shsolana rent <BYTES_USED_BY_ACCOUNT>
-
For a standard token account, you need 0.00203928 SOL.
-
Reduce Account Size (For Developers)
-
If deploying a program, optimize its size to reduce rent costs.
https://sol.gtokentool.com/walletManagement/rentRecovery
Example Error Scenarios
-
Creating a new token account: Needs ~0.002 SOL.
-
Deploying a program: Could need 1-2 SOL (depending on size).
-
Simple transfer: Only needs a tiny fee (~0.000005 SOL).
Still Stuck?
-
Check your balance:
shsolana balance
-
If on Devnet/Testnet, request an airdrop:
shsolana airdrop 1
