Templates & Examples

Get started with the Bundler & Paymaster in seconds

ZeroDev Template

GitHub Repo implementing Gelato + ZeroDev to gaslessly deploy a Smart Wallet and increment a counter. The repo contains a quick start guide in the README. To generate a 1Balance API Key, please refer to 1Balance & Relay.

The example uses a maxFeePerGas=0 override which allows transaction fees to be accurately settled post-execution rather than by the EntryPoint.

This reduces our on-chain footprint leading to gas savings and avoids overcharging users (e.g., preVerificationGas).

ERC4337 Examples - Zerodev Kernel Account

This GitHub repository demonstrates how to integrate Gelato and ZeroDev to deploy smart wallets using ZeroDev Kernel. It covers four primary use cases: two for sponsored user operations (using 1Balance and the ZeroDev Paymaster) and two for non-sponsored user operations (paying gas with native tokens and paying gas with ERC20 tokens).

ERC4337 Examples - Safe Account

This GitHub repository demonstrates how to integrate Gelato and ZeroDev to deploy smart wallets using Safe Account. It covers four primary use cases: two for sponsored user operations (using 1Balance and the ZeroDev Paymaster) and two for non-sponsored user operations (paying gas with native tokens and paying gas with ERC20 tokens).

Last updated