Sponsoring gas for users is one of the most effective ways to enhance the user experience in dApps. With the Gelato Gasless SDK, developers can easily set up sponsored transactions for their applications in just a few simple steps, enabling seamless onboarding and interaction without requiring users to hold native tokens.Documentation Index
Fetch the complete documentation index at: https://docs.gelato.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Getting Started
Setup Smart Account
You can set up a Smart Account as per your needs. In the case of
When using a
For a
Gelato, the Gelato Smart Account address will be the same as your EOA, enabling EIP-7702 features.
When using a
Kernel Account, you have the option to use EIP-7702 and ERC-4337 together. Setting eip7702 parameter to true will make your EOA the sender address. However, if you want to utilize existing Kernel accounts only with ERC-4337 features, set it to false.
For a
Safe Account, it defaults to the ERC-4337 standard. You can either use an already deployed Safe Account or create a new one, while enhancing the experience with Gelato’s best-in-class infrastructure.- Gelato Smart Account
- Kernel Account
- Safe Account
- Metamask Account
Setup Wallet Client
Quickly get started by creating a wallet client using
createWalletClient from viem with local account for your specified network. Checkout supported networks here.Creating a Smart Wallet Client
To create a API Key, visit the Gelato App and navigate to the
For detailed instructions, click here to learn more about creating a API Key.
Paymaster & Bundler > API Keys section. Create a new API Key, select the required networks, and copy the generated API Key.
For detailed instructions, click here to learn more about creating a API Key.
Sponsor Gas Playground
Additional Resources
- Check out the full implementation of sponsored transactions using Gelato Wallets, Kernel Wallets, Safe Wallets and Metamask Wallets.