Last updated
Last updated
Paying gas fees with native tokens like ETH remains the standard approach across most blockchains. It’s deeply integrated into the protocol and offers the most direct and compatible method for covering transaction costs.
Quickly get started by creating a wallet client using createWalletClient
from viem
with local account for your specified network.
To initialize a Smart Wallet Client, you can use the createGelatoSmartWalletClient
method.
Use wallet: 'kernel'
when creating the Smart Wallet client to ensure ERC-4337 compatibility.
A Smart Wallet Client serves as an alternative to the standard viem
walletClient, but is purpose-built for managing EOA's as smart wallets instead of traditional EOA (Externally Owned Accounts).
You can batch multiple transactions to be sent on-chain at once by adding them to the calls
array.
To send transactions with native gas payments, select Native as the payment method and ensure your account has enough native currency to cover the gas fees. View example code implementing native gas payments using the Gelato Smart Wallet SDK .