uponly / blog
glossary

paymaster: definition and how gas sponsorship works

what is a paymaster? a clean definition of erc-4337 paymasters, how gas sponsorship works, and how the uponly.win paymaster removes eth from the ux.

uponly team5 min readGlossary

a paymaster is a smart contract defined in the erc-4337 account abstraction standard whose job is to pay gas on behalf of a user. when a smart wallet submits a transaction, the paymaster steps in, covers the gas in native token (eth on most evms), and either eats the cost as a subsidy or charges the user in a different asset like usdc. paymasters are the reason a perp dex can let you trade without ever holding eth.

in plain english

a paymaster is the on-chain equivalent of an app paying for your taxi. you do not have cash on you, but the app has an account with the cab company, and the ride gets paid out of that account. the cab driver still gets paid; you just did not need to handle the money. in crypto, the app pays your gas in eth and your transaction goes through as if you had eth in your wallet.

what paymasters do

the standard defines a few flavors:

  • verifying paymaster: app sponsors gas for whitelisted users or actions, no payment from the user.
  • token paymaster: user pays gas in an erc-20 like usdc, paymaster swaps and pays the validator in eth.
  • erc-20 specific paymasters: pay gas in a single approved token, gas-station style.
  • flat-fee paymaster: charge users a flat rate per action regardless of underlying gas cost.
a paymaster is not free money. someone has to pay the validator in eth at the end. the question is just who: the app, the user via stablecoin swap, or a third-party gas station.

why paymasters exist

the original ethereum model requires every transaction to be paid in eth by the sender. that is fine for power users with eth always topped up. it is terrible ux for everyone else: a brand-new user gets a usdc deposit, opens a wallet, tries to send a tx, and the wallet errors out because there is no eth. paymasters solve that exact problem by separating "who signs the tx" from "who pays the gas."

how it shows up on uponly.win

uponly runs a paymaster on base that sponsors gas for the actions users actually take: depositing into the smart wallet, approving usdc, opening rips on avantis, closing positions. when you tap rip, you sign the intent with your privy-managed signer, and the paymaster pays the base sequencer in eth so your transaction lands. you never need to bridge or hold eth. this is the second half (with smart wallets) of why uponly feels like a normal app instead of a crypto puzzle. for more on the build, see how uponly was built in one night.

common confusions

a paymaster does not give you free transactions in any economic sense. someone still pays gas. on uponly, the app eats the cost as part of the product cost, which works because the platform earns a small variable fee only on winning rips and that revenue covers gas. on other apps, the user pays gas in usdc via a token paymaster. either way, gas is being paid; it is just hidden from the ux.

  1. paymasters are smart contracts, not centralized services.
  2. they require erc-4337 (account abstraction) to exist on a chain.
  3. sponsored gas is an app subsidy; token-paid gas is a user-side conversion.
  4. paymasters can be turned off if abused (rate limits, whitelists).

see also

the cleanest way to see a paymaster in action is to use a product running one. open uponly, deposit usdc, and tap rip. no eth, no bridging, no failed transactions for lack of gas. that is the paymaster doing its job in the background.

Frequently asked questions

what is a paymaster?

a smart contract that pays gas on behalf of a user as part of erc-4337 account abstraction. it lets users transact without holding the native gas token.

who pays for the gas if the paymaster does?

either the app sponsors it as a product cost, or the user pays in a different token (usually a stablecoin) that the paymaster converts behind the scenes. validators always get paid in the native token.

is sponsored gas custodial?

no. the user still signs the transaction with their own signer. the paymaster just covers the gas portion. nothing about it gives the paymaster control of user funds.

does uponly use a paymaster?

yes. uponly runs a paymaster on base that sponsors gas for rips and related actions. you do not need eth to use uponly.

can a paymaster refuse to pay?

yes. paymasters can rate-limit, whitelist, or reject transactions that fall outside their sponsorship rules. that is how apps prevent abuse of free gas.

#paymaster#account abstraction#glossary#gas

Want to actually trade this?

uponly.win is the one-tap arcade for crypto perps. 75x–500x leverage. No house. No fees on losses. No fees to open. We only take a small variable cut when you win big.

Related reads