Closed hassanshafique closed 1 month ago
gm! Have you double-checked the accounts in this transaction? The InsufficientFundsForRent
error is thrown when a transaction results in an account with insufficient funds for rent. This could also be an issue with how solana/web3.js handles simulations because the transaction still goes through
Have you double-checked the accounts in this transaction? The InsufficientFundsForRent error is thrown when a transaction results in an account with insufficient funds for rent.
Yes, I have double checked it. The funds are correctly transferred from payer
to receiver
with feePayer
paying the gas fee. This error happens during simulation
only. So, maybe it uses the default 1000 compute units. Strange thing is that even with error, the transaction still goes!?
gm @hassanshafique! Are you still encountering this issue? It seems like this happens when sending to new or uninitialized accounts. So, the simulation fails due to rent-exemption checks, but the actual transaction still succeeds because the account gets funded properly
I'm going to go ahead and close this issue, as it seems to be an error on your end with the inputs you've provided rather than an SDK issue. I recommend checking out the Solana Stack Exchange if this issue persists! And, of course, if you have any SDK issues, please feel free to open another issue or reach out to our support on Discord!
Getting error during getComputeUnit during sendSmartTransaction: Error
Although the transaction still goes smoothly with success in the blockchain!
Steps to reproduce this unexpected error/warning