Sponsor transactions
One of the biggest UX enhancements unlocked by smart accounts is the ability for app developers to sponsor their users' transactions. If your ecosystem has a gas policy enabled, you can start sponsorship your user's transactions by using the policy
in your dashboard.
To make these instructions concrete, we have created a sample ecosystem wallet called Rapidfire ID. To interact with it, you can find its SDK in the NPM package directory: @rapidfire/id.
You can check out the GitHub repository for Rapidfire Wallet to learn how to create your own wallet.
Use a policy when injecting your provider#
Sponsor all transactions that will be made with the injected provider.
Updating the policy#
Updating your policy is useful if you change chain and need to specify a different policy ID.
You can also configure your own app level policy. Check the details in the dashboard section.
-
Using an external paymaster setup.
-
Learn how to use erc20 tokens to pay for gas fees.