Similar Transaction With Different Invoker Simulating Different storage_fee_octas
gas fee.
#692
Unanswered
Ishwar-Parmar
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Discord user ID
976743416924897300
Describe your question in detail.
I'm currently working on an NFT contract where I mint NFTs to various users, covering the gas fees myself. I've noticed that gas costs vary depending on the recipient's account status:
If the recipient's account is not yet active on-chain, the transaction incurs significantly higher gas fees, likely due to the overhead of account creation or initialization.
Even when minting to two existing on-chain accounts using the same function and identical arguments, the gas fee can still vary between transactions.
It seems the increased cost is tied to account state initialization for new addresses.
My goal is to optimize this process so that each minting transaction incurs only the minimum necessary gas fees, regardless of whether the recipient's account is already on-chain.
Does anyone have recommendations for reducing these extra costs or optimizing the minting strategy?
What error, if any, are you getting?
No response
What have you tried or looked at? Or how can we reproduce the error?
No response
Which operating system are you using?
Linux (Ubuntu, Fedora, Windows WSL, etc.)
Which SDK or tool are you using? (if any)
TypeScript SDK
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions