What a Paymaster on zkSync Era Shows About Gas Fees
What is a paymaster on zkSync Era? It pays transaction gas in ETH for you, while an app sponsors the fee or takes an ERC-20 token in return.
The Tareom Editors4 min read

A paymaster on zkSync Era is a smart contract that pays a transaction’s gas in ETH on your behalf. The app may cover that cost, or the paymaster may collect an ERC-20 token from you in return. zkSync Era’s native account abstraction lets a contract take on fee payment, so your wallet can send a transaction even when it has no ETH for gas.
Think of it as paying for a purchase with one balance while a service handles the checkout fee in another currency. You still authorize the transaction, and the network still receives ETH for gas; the paymaster handles that ETH payment under rules it checks first.
A paymaster handles the ETH gas payment
On zkSync Era, the paymaster checks whether it will cover a transaction, then sends ETH to the network’s operator to cover the gas. The required interface function is validateAndPayForPaymasterTransaction. If the paymaster approves, it must send at least the required gas amount; the transaction can then proceed through execution.
The ETH comes from the paymaster’s funds. Depending on the app’s setup, the user might pay nothing, receive sponsorship from the app, or compensate the paymaster with an ERC-20 token. In a token payment, the paymaster covers the network fee in ETH while collecting the agreed token from the user.
This is where a paymaster can help with a DEX swap. Say you have USDC but no ETH: if a zkSync Era DEX offers a suitable paymaster, you can swap through SyncSwap and pay the fee in USDC. The app must offer this option, and the token and conditions must be supported. SyncSwap users can also check syncswap supported tokens when considering which tokens to use.
Account abstraction lets a contract pay for you
Account abstraction means that account rules can be handled by smart contract logic. On zkSync Era, that setup allows a paymaster to take responsibility for the transaction fee instead of requiring the user’s account to pay it directly. Your wallet still approves the transaction; the paymaster separately decides whether the transaction meets its conditions.
ERC-4337 also uses the paymaster concept: a contract can sponsor gas for users or support token-based fee payment. It is useful background for understanding the idea, but zkSync Era has its own account abstraction flow and required interface. On zkSync Era, the paymaster function that approves and pays is validateAndPayForPaymasterTransaction.
General and approvalBased flows set the terms
The zkSync Era documentation describes two common paymaster flows. In the general flow, the paymaster does not require a preliminary user action such as setting a token allowance. It can still apply its own rules to decide whether to pay.
The approvalBased flow is for a paymaster that needs an allowance to collect an ERC-20 token. An allowance is permission for a contract to transfer a specified amount of your tokens. The transaction includes the token, a minimum allowance, and any extra information the paymaster needs to evaluate the request.
On a supported account and app, the token approval is prepared inside the same transaction as the swap. That means you do not need to send a separate approval transaction first. A separate approval can require its own gas payment, so bundling the allowance with the swap can avoid needing ETH just to approve the token before paying the swap fee in USDC.
The paymaster still checks the allowance and its own requirements. It may reject a transaction if the token, allowance, or other conditions do not fit its rules. The app also needs to estimate the gas with the paymaster details included, because validation, token handling, and the ETH payment add work to the transaction.
A paymaster is not the swap or the token
A paymaster handles fee payment; it does not provide the DEX’s trading pool or set the swap itself. SyncSwap is the exchange where you trade tokens and access liquidity pools on supported networks. A paymaster may be available in the app’s transaction flow, but the two have different jobs.
Paying through a paymaster also does not mean the network fee disappears. The network still charges gas in ETH; the paymaster supplies that ETH and follows its sponsorship or token collection terms. Before you submit, check which token the app accepts for fees, whether it sponsors the transaction, and whether the approvalBased flow is available for your account.
If you want to repeat the USDC-without-ETH approach, first confirm the DEX offers a paymaster for that swap and token, then choose approvalBased if the app supports it. That can combine the token approval with the swap and save you from needing ETH for a separate approval transaction.