Getting Started
Estimate Gas
Use
estimate instead of execute when estimating gas for transactions with different gas payment methods.Note: When estimating gas for ERC-20 tokens, the results will be based on the token’s decimals. Ensure you format the results accordingly. Learn how to use different gas payment methods here.Additional Resources
- Check out the full example code for estimating gas for sponsored transactions here.