Sponsoring
Transactions with Gas Tank
, both maxFeePerGas
and maxPriorityFeePerGas
are set to 0
.
This allows transaction fees to be accurately settled post-execution, rather than upfront via the EntryPoint.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
and sponsored
set to true
as query parameter to the transport option. Learn more about Bundler Client here.Send a UserOperation
UserOperation
with the bundlerClient
and the account
and set maxFeePerGas
and maxPriorityFeePerGas
to 0
(0x0). This allows transaction fees to be settled after execution, rather than through the EntryPoint.Create a API Key
Set `sponsored` query parameter to `true`
apiKey
and sponsored
set to true
as a query parameter.Your Bundler URL will look like this:Configure the UserOperation Parameters
maxFeePerGas
, maxPriorityFeePerGas
, and preVerificationGas
to 0
(0x0). This allows transaction fees to be settled after execution, rather than through the EntryPoint.paymaster
, paymasterData
, paymasterPostOpGasLimit
, paymasterVerificationGasLimit
).sponsored
to true
in the query params:eth_estimateUserOperationGas
endpoint will return preVerificationGas
as 0
.eth_getUserOperationGasPrice
endpoint will return maxFeePerGas
and maxPriorityFeePerGas
as 0
.