SKIP TO CONTENT
Blockchain

Paymaster

A contract that sponsors gas fees for account abstraction transactions.

What is a Paymaster?

A paymaster is a smart contract in the ERC-4337 account abstraction system that can sponsor gas fees for users' transactions. Instead of requiring users to hold ETH for gas, paymasters allow applications to cover transaction costs, accept payment in alternative tokens, or implement sophisticated fee structures. Dramatically improving user experience.

Paymasters are one of the most impactful features of account abstraction, removing the requirement that users own native tokens before they can interact with a blockchain.

How it Works

Paymasters integrate into the ERC-4337 flow through specific interfaces:

Sponsorship Flow:
  1. UserOperation includes paymaster address and data
  2. Bundler simulates, calling paymaster.validatePaymasterUserOp
  3. Paymaster decides whether to sponsor based on custom logic
  4. EntryPoint processes operation if paymaster approves
  5. Paymaster's deposit pays for gas
  6. Post-operation, paymaster can charge user (optional)
Paymaster Types: Verifying Paymaster:
  • Sponsors specific users/operations
  • Validates off-chain signatures
  • Used for promotional/free transactions
Token Paymaster:
  • Accepts ERC-20 tokens for gas payment
  • Converts tokens to ETH for bundler
  • User pays in USDC, DAI, or any token
Deposit Paymaster:
  • Users maintain deposit with paymaster
  • Gas deducted from deposit balance
  • Useful for frequent users
Sponsorship Models:
  • dApp-sponsored: Protocol pays for user gas
  • Token-based: User pays in preferred token
  • Subscription: Prepaid gas packages
  • Hybrid: Partial sponsorship with user top-up

Practical Example

A NFT marketplace wants to onboard new users seamlessly. They deploy a verifying paymaster and create a promotional campaign. When a new user mints their first NFT, the marketplace backend signs an approval for the paymaster. The user's UserOperation includes this approval. The paymaster validates the signature and sponsors the gas. The user pays nothing. For subsequent transactions, the user can pay gas in USDC through a token paymaster, never needing to acquire ETH. This removes two major friction points in crypto onboarding.

Why it Matters

Paymasters unlock transformative user experiences:

Onboarding Revolution:
  • New users don't need ETH to start
  • Eliminates "buy crypto to use crypto" paradox
  • Enables fiat-like onboarding flows
Business Models:
  • dApps can subsidize strategic users
  • Freemium models become possible
  • Loyalty/rewards programs via gas sponsorship
Token Flexibility:
  • Pay gas in stablecoins for predictability
  • Use any liquid token as gas currency
  • Simplifies accounting and tax
Cross-Chain UX:
  • Single token works across chains via paymasters
  • No need to manage native gas on each network
  • Bridges can sponsor bridging gas
Growing Ecosystem:
  • Infrastructure providers offer managed paymasters
  • SDK integration becoming standard
  • Enterprise adoption accelerating

Paymasters represent the "killer feature" of account abstraction, making blockchain UX competitive with traditional applications.

Fensory leverages paymaster infrastructure to offer gas-optimized transactions, helping you maximize returns by minimizing transaction costs.

Examples

  • Biconomy provides paymaster services enabling gasless dApp transactions
  • Safe supports paymaster integration for sponsored multisig operations

Put this term to work. Browse live yield data.

Track live yields, compare protocols, and build your DeFi portfolio with Fensory.

GET EARLY ACCESSArrow right