bcnmy / biconomy-client-sdk

Biconomy SDK is a plug & play toolkit for dApps to build transaction legos that enable a highly customised one-click experience for their users
MIT License
76 stars 78 forks source link

feat: gas estimates #477

Closed joepegler closed 6 months ago

joepegler commented 6 months ago

Gas estimates for userOps

const amountInWei = await smartAccount.getGasEstimates([tx, tx], {
  paymasterServiceData: {
    mode: PaymasterMode.SPONSORED,
  },
});

Checklist:


PR-Codex overview

The focus of this PR is to enhance error handling in HTTP requests and improve gas estimation for user operations.

Detailed summary

The following files were skipped due to too many changes: src/account/BiconomySmartAccountV2.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

github-actions[bot] commented 6 months ago

size-limit report 📦

Path Size
core (esm) 51.97 KB (+0.23% 🔺)
core (cjs) 56.55 KB (+0.26% 🔺)
account (tree-shaking) 50.91 KB (+0.15% 🔺)
bundler (tree-shaking) 2.33 KB (+0.85% 🔺)
paymaster (tree-shaking) 2.25 KB (+1.28% 🔺)
modules (tree-shaking) 40.05 KB (0%)