Skip to main content

ERC-4337 Paymaster: Gas Sponsorship Explained

Biconomy provides all paymaster functionality through the MEE (Modular Execution Environment) stack. While this page explains how ERC-4337 paymasters work conceptually, you should use MEE to implement gas sponsorship in your applications—it provides paymaster capabilities plus cross-chain orchestration in a unified interface.
A Paymaster is a smart contract in the ERC-4337 account abstraction standard that pays gas fees on behalf of users. Instead of users needing ETH for gas, the paymaster covers the cost.
Paymasters enable:
  • Gasless transactions: Users pay nothing
  • Gas abstraction: Users pay in ERC-20 tokens (USDC, DAI, etc.)
  • Sponsored transactions: Apps cover user gas costs
The paymaster integrates with the ERC-4337 flow:
Key steps:
  1. User creates and signs a UserOperation
  2. UserOperation includes paymasterAndData field
  3. Bundler submits to EntryPoint
  4. EntryPoint calls validatePaymasterUserOp on Paymaster
  5. Paymaster validates and agrees to pay
  6. Transaction executes
  7. Paymaster’s deposit is debited for gas
Biconomy’s MEE provides all these paymaster capabilities:
  • Flexible sponsorship policies
  • Token payment options (pay gas in USDC, DAI, etc.)
  • Spending limits (per transaction, total)
  • Plus cross-chain gas abstraction (pay on any chain with tokens from any chain)
Biconomy provides paymaster functionality through MEE (Modular Execution Environment):Step 1: Get your MEE API key from DashboardStep 2: Initialize MEE client
Step 3: Send sponsored transaction
MEE handles all gas sponsorship automatically based on your dashboard configuration.
Configure policies in the Biconomy Dashboard or via API:Per-Transaction Limit:
Total Spending Limit:
Spending limits help you control costs and prevent abuse:Per-Transaction Limits:
  • Set maximum gas cost per individual transaction
  • Prevents unexpectedly expensive operations from draining your balance
Total Limits:
  • Set an overall spending cap
  • MEE automatically stops sponsoring once the limit is reached
Configure both limits in the Biconomy Dashboard for optimal cost control.
MEE supports paying gas in ERC-20 tokens (gas abstraction):
MEE supports cross-chain gas payment - pay for gas on any chain using tokens from any other supported chain!Supported gas payment tokens vary by chain. Common options:
  • USDC
  • USDT
  • DAI
  • WETH
Check supported gas tokens for the full list.
Biconomy Dashboard provides:
  • Real-time gas spending
  • Contract interaction breakdown
  • Spending trends over time
API Access:
Set up alerts:
1. Set per-transaction limits:
2. Set total spending caps:
3. Monitor for abuse:
  • Watch for unusual patterns
  • Set up anomaly alerts
  • Review spending regularly in the dashboard
Common failure scenarios and handling:Implement fallback logic:

Build Gasless App

Complete integration guide

Gasless Transactions

How gasless transactions work