Getting Started
1
Setup Smart Wallet Client
Quickly set up the Smart Wallet client as outlined in the How-To Guides.
2
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.3
Estimate Gas for Multiple Transactions
You can also estimate gas for multiple transactions by adding them to the calls array:
Additional Resources
- Check out the full example code for estimating gas for sponsored transactions here.