“Found no record of a prior credit” / “insufficient funds for fee”
The fee payer has no SOL (or not enough) to pay the network fee.
Attempt to debit an account but found no record of a prior credit
Cause
The first signer pays the fee. If that address has never received SOL, the runtime has no account to debit and reports “no record of a prior credit”. If it holds some SOL but less than the fee, the error is “insufficient funds for fee”.
This happens often with a freshly created wallet that only received tokens: tokens are not SOL, and the fee is always paid in SOL.
Fix
- Send SOL to the fee payer first. The calculator for a reserve shows how much a set of planned transactions costs, split into fees and refundable deposits.
Fee charged? No. The transaction is rejected before execution, so there is no fee to take.
FAQ
What does “Attempt to debit an account but found no record of a prior credit” mean?
The first signer pays the fee. If that address has never received SOL, the runtime has no account to debit and reports “no record of a prior credit”. If it holds some SOL but less than the fee, the error is “insufficient funds for fee”. This happens often with a freshly created wallet that only received tokens: tokens are not SOL, and the fee is always paid in SOL.
How do I fix it?
Send SOL to the fee payer first. The calculator for a reserve shows how much a set of planned transactions costs, split into fees and refundable deposits.
Was I charged a fee?
No. The transaction is rejected before execution, so there is no fee to take.
“Insufficient funds for rent”“Exceeded CUs meter” / “Computational budget exceeded”“Blockhash not found” when sending a Solana transaction“Transaction simulation failed”