“Transfer: insufficient lamports …, need …”
A SOL transfer inside the transaction asked for more than the sender holds.
Transfer: insufficient lamports 1000000, need 2039280
Cause
The System program refuses a transfer larger than the sender's balance. The “need” figure is the amount the instruction wanted to move.
When the needed amount is the rent-exempt minimum of an account (for example a new token account), the transaction is trying to create that account and the payer cannot fund its deposit.
Fix
- Top up the payer with at least the difference plus the network fee.
- If the amount is a deposit for a new account, check whether the account really has to be created — sending to a wallet that already holds the token needs no new account.
Fee charged? If the transaction landed, yes: the network fee was charged and the transfer reverted.
FAQ
What does “Transfer: insufficient lamports 1000000, need 2039280” mean?
The System program refuses a transfer larger than the sender's balance. The “need” figure is the amount the instruction wanted to move. When the needed amount is the rent-exempt minimum of an account (for example a new token account), the transaction is trying to create that account and the payer cannot fund its deposit.
How do I fix it?
Top up the payer with at least the difference plus the network fee. If the amount is a deposit for a new account, check whether the account really has to be created — sending to a wallet that already holds the token needs no new account.
Was I charged a fee?
If the transaction landed, yes: the network fee was charged and the transfer reverted.
“Insufficient funds for rent”“Exceeded CUs meter” / “Computational budget exceeded”“Blockhash not found” when sending a Solana transaction“Transaction simulation failed”