EVM Gas Sponsorship on testnets is available on every plan. Sponsoring mainnet transactions requires an Enterprise plan. Contact us to learn more about upgrading your plan.
EVM Gas Sponsorship works only with V3 MPC embedded wallets. It does not work with external wallets such as MetaMask.
Quick start
1
Turn on gas sponsorship in the Dynamic Console
- Go to the Dynamic Console.
- Open the smart wallets settings.
- Make sure the EVM chains you want to sponsor are enabled.
- Enable EVM gas sponsorship, then choose which of the supported networks to sponsor.
2
Send a sponsored transaction
Call The user pays no gas, and the first sponsored transaction handles the one-time EIP-7702 delegation setup automatically.
sendSponsoredTransaction on DynamicSDK.instance().evm with a list of EarnSponsoredCall values and the user’s wallet. It returns the relayed transaction hash.What goes in calls
Each EarnSponsoredCall describes one action the transaction performs.
Gas fields are intentionally absent from a sponsored call because the relayer funds gas.
Batch calls
A sponsored transaction can carry multiple calls. The calls execute atomically in order: either every call succeeds or the transaction reverts. The following example approves an ERC-20 spend and then calls the spender contract in one sponsored transaction:erc20Allowance to read the allowance a spender already holds, so you can skip an approval the wallet already granted:
Check sponsorship availability
isGasSponsorshipEnabled reports whether the environment can sponsor EVM transactions. Use it before building a sponsored flow, and keep a wallet-paid path for when it returns false:
Earn integration
When Earn executes an EVM vault action, itssponsored parameter routes the approval and vault call through gas sponsorship automatically. See Gas sponsorship in the Earn guide.
Next steps
- SVM Gas Sponsorship - Sponsor Solana transaction fees.
- Earn - Deposit into yield vaults with sponsored execution.
- Send ETH - Send wallet-paid EVM transactions.