Create a API Key
Import Dependencies
Setup Smart Account
Account
type can be used here.
Check out other available smart accounts here.Create a Bundler Client
BundlerClient
with the account 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
Keep Paymaster Fields Empty
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
can be fetched from eth_estimateUserOperationGas
API Endpoint.