Create a API Key
Import Dependencies
Setup Smart Account
Account
type can be used here.
Check out other available smart accounts here.Create a Paymaster Client
PaymasterClient
with Paymaster URL. Learn more about Paymaster Client here.Create a Bundler Client
BundlerClient
with the account, paymasterClient and publicClient and pass the apiKey
as query parameter to the transport option. Learn more about Bundler Client here.Send a UserOperation
UserOperation
with the bundlerClient
and the account
.Create a API Key
Include Paymaster Fields
paymaster
, paymasterData
etc. along with the standard UserOperation parameters.Set `sponsored` query parameter to `false` or don't include it
apiKey
and sponsored
set to false
as a query parameter.Your Bundler URL will look like this:Fetch Gas Parameters from Gelato APIs
maxFeePerGas
and maxPriorityFeePerGas
can be fetched from eth_getUserOperationGasPrice
API Endpoint.callGasLimit
, verificationGasLimit
, preVerificationGas
& paymasterVerificationGasLimit
can be fetched from eth_estimateUserOperationGas
API Endpoint.