---
title: "Gas Sponsorship for Onchain Apps"
description: "Sponsor gas for your users so they transact instantly, with no native tokens to buy and no fee prompts to abandon. Powered by the engine behind 100M+ sponsored transactions."
canonical: https://www.pimlico.io/products/gas-sponsorship
---

# Gas Sponsorship for Onchain Apps

> Markdown mirror of https://www.pimlico.io/products/gas-sponsorship. Every page on this site has a markdown version at the same path with a `.md` suffix. For technical and implementation details, see Pimlico's documentation index at https://docs.pimlico.io/llms.txt.

## Pages on this site

### Home

- [The gas sponsorship engine for onchain apps](https://www.pimlico.io/index.md): Pimlico is the gas sponsorship engine for onchain apps. Sponsor transactions, accept any ERC20 token for gas, and set policy rules across 100+ chains.

### Products

- [Ecosystem Gas Programs for Chains](https://www.pimlico.io/products/ecosystem-gas-programs.md): For chains and ecosystems: sponsor gas for every team building on your chain, so their users transact without ever holding native token.
- [Pay Gas in USDC, USDT & 300+ ERC-20 Tokens](https://www.pimlico.io/products/erc20-gas.md): Let users pay gas in USDC, USDT, or any of 300+ ERC20 tokens, with no native tokens required. Audited by OpenZeppelin and Quantstamp.
- Gas Sponsorship for Onchain Apps (this page)
- [Sponsorship Policies — Spend Controls for Gas](https://www.pimlico.io/products/sponsorship-policies.md): Spend controls for gas: sponsor the first N transactions per user, cap dollars per transaction, per user, or per campaign, all configured in the dashboard and applied instantly.
- [Transaction Infrastructure & ERC-4337 Bundlers](https://www.pimlico.io/products/transaction-infrastructure.md): The execution engine under the sponsorship layer: ERC-4337 bundlers with <2s inclusion on L2s, parallel processing, and 250M+ transactions relayed in production.

### Solutions

- [Onchain Execution for AI Agents](https://www.pimlico.io/solutions/ai-agents.md): Give AI agents smart accounts that execute on demand: they trade, pay, and move money the instant your logic fires. Sponsor their actions, or let user-funded agents pay their own way in USDC, USDT, or 300+ tokens, within the limits you set.
- [Smart Account Infrastructure for Chains](https://www.pimlico.io/solutions/chains.md): Launch with smart account infrastructure from day one and fund gas programs that turn your ecosystem’s onboarding friction into growth.
- [Deploy Pimlico on Your Chain](https://www.pimlico.io/solutions/chains/deploy.md): Enterprise deployments for chains and ecosystems: Pimlico's complete suite, from gas sponsorship to transaction infrastructure, live on your chain so every builder ships better UX from day one.
- [Gasless Onboarding for Consumer Apps](https://www.pimlico.io/solutions/consumer-apps.md): Onboard users who have never owned crypto: sponsor their gas, set budgets that protect your margins, and make the blockchain disappear from your UX.
- [Enterprise Onchain Infrastructure](https://www.pimlico.io/solutions/enterprise.md): SOC 2 certified infrastructure with custom SLAs, 24/7 support, and the team that co-authored ERC-4337, built for companies that cannot afford a dropped transaction.
- [Stablecoin Settlement Infrastructure](https://www.pimlico.io/solutions/stablecoin-processors.md): Execute stablecoin transactions reliably, at low latency, on 100+ chains, with gas paid in the stablecoins you already move.
- [Smart Account Infrastructure for Startups](https://www.pimlico.io/solutions/startups.md): Ship smart accounts in hours, not weeks. Free on testnets, pay-as-you-go in production, no commitments. It is the stack startups like Daimo and Zora started on.
- [Smart Account Infrastructure for Wallets](https://www.pimlico.io/solutions/wallets.md): Build gasless smart wallets with any signer and any smart account, on the infrastructure trusted by MetaMask, Safe, and Trust Wallet.

### Other pages

- [Customers](https://www.pimlico.io/customers.md): The teams building on Pimlico: Circle, MetaMask, Safe, Trust Wallet, Zora, Tools for Humanity, and more, across wallets, consumer apps, and stablecoin payments.
- [Smart Account & Signer Integrations](https://www.pimlico.io/integrations.md): Every major smart account and signer, already integrated: Safe, Kernel, MetaMask, Privy, Turnkey, passkeys, and more, across 100+ chains.
- [Pricing](https://www.pimlico.io/pricing.md): Free on testnets, pay-as-you-go in production, custom Enterprise rates. Transparent credit-based pricing for gas sponsorship and transaction infrastructure.
- [Privacy Policy](https://www.pimlico.io/privacy.md): This Privacy Policy will inform you about how we look after your personal data when you visit our website or use our services and tell you about your privacy rights.
- [Terms of Service](https://www.pimlico.io/tos.md): This Terms of Service will inform you about the terms of using Pimlico's services.

---

Gas Sponsorship

# Sponsor gas. Keep your users.

Pay gas on behalf of your users so their first transaction, and every one after, just works. There is nothing to buy and nothing to bridge.

[Start sponsoring](https://dashboard.pimlico.io)[Read the docs](https://docs.pimlico.io/infra/paymaster)

100M+transactions sponsored

100+chains

**sponsor.ts**

```typescript
import { createSmartAccountClient } from "permissionless"
import { toSafeSmartAccount } from "permissionless/accounts"
import { createPimlicoClient } from "permissionless/clients/pimlico"
import { http, parseEther } from "viem"
import { base } from "viem/chains"

const pimlicoUrl = "https://api.pimlico.io/v2/base/rpc?apikey=API_KEY"
const pimlicoClient = createPimlicoClient({ transport: http(pimlicoUrl) })

const account = await toSafeSmartAccount({
  client: publicClient,
  owners: [owner],
  version: "1.4.1",
})

// Gas is sponsored, so your user never sees a fee
const smartAccountClient = createSmartAccountClient({
  account,
  chain: base,
  bundlerTransport: http(pimlicoUrl),
  paymaster: pimlicoClient,
})

const txHash = await smartAccountClient.sendTransaction({
  to: "0x...",
  value: parseEther("0.1"),
})
```

Why it matters

### Gas fees are a conversion tax

Asking a new user to buy a volatile token before they can touch your product is the single biggest drop-off point in onchain onboarding. Teams that sponsor gas remove that step entirely, so signup to first transaction becomes one motion.

You decide what to sponsor and how much. Your users just see your product working.

1

User signs up

Social login or passkey, and they have never owned crypto.

2

User takes an action

Mint, trade, or send: your app submits it as a smart account transaction.

3

Pimlico sponsors the gas

Our paymaster verifies your policy and pays the fee on-chain.

4

Transaction confirmed

Included in under 2 seconds on L2s. The user saw none of this.

Control

### Sponsorship without blank checks

Every sponsorship runs through your policies: cap spend per transaction, per user, or per campaign, and target specific chains or contracts. Change limits in the dashboard and they apply instantly, with no code changes or redeploys.

[Explore Sponsorship Policies](https://www.pimlico.io/products/sponsorship-policies.md)

sp\_onboarding\_q3

New-user onboarding

Active

Sponsor first5 transactions / user

Max per transaction$1.00

Max per user$3.00

Campaign budget$5,000.00

ChainsBase, Arbitrum, Optimism

Budget used$1,860 / $5,000

Webhooks

### Your rules decide every sponsorship

When dashboard policies aren't enough, Pimlico calls your server before sponsoring and you approve or reject each request in real time. KYC state, fraud signals, allowlists: any check you can code becomes a sponsorship rule.

[Read the webhook guide](https://docs.pimlico.io/guides/how-to/sponsorship-policies/webhook)

**webhook.ts**

```typescript
// Pimlico calls your endpoint before sponsoring. You decide.
export async function POST(req: Request) {
  const { data } = await req.json()
  const { userOperation, chainId, sponsorshipPolicyId } = data.object

  // Your rules: KYC status, fraud signals, allowlists — anything
  const user = await lookupUser(userOperation.sender)

  return Response.json({
    sponsor: user.verified && !user.flagged,
  })
}
```

The graduation ramp

### Sponsor first, stablecoins after

Sponsorship is the on-ramp, not the bill forever. The pattern most teams run: cover the first transactions under tight caps, then let users pay their own fees from the stablecoins they already hold.

When your caps are hit, users keep transacting on their own balance. One client and one policy engine cover both, so the switch is a config change, not a migration.

[Explore ERC20 Gas Sponsorships](https://www.pimlico.io/products/erc20-gas.md)

1

First transactions are sponsored

New users transact under your policy caps, with no balance needed at all.

2

They fund their account

Stablecoins land in the account, and there is still no native token to buy.

3

The same client switches to ERC-20 gas

Set the token in paymasterContext, and fees come out of the USDC, USDT, or 300+ other tokens they already hold on that chain.

Boosted Sponsorships

### Sponsorship at its fastest: 34–43% quicker

When every millisecond of your flow counts, Boosted Sponsorships strip sponsorship down to its fastest form: pre-verified operations with no paymaster data attached, making them 34–43% faster end to end.

You settle gas by monthly invoice instead of per-operation on-chain deduction. Access is granted on request.

[Talk to us](https://cal.com/kristofgazso/20min)[Read the docs](https://docs.pimlico.io/guides/boosted-paymaster/use-boosted-paymaster)

1

Your app submits a user operation

No paymaster data to fetch and no extra signature round-trips.

2

Pimlico sponsors off-chain

Three RPC calls disappear from the hot path entirely.

3

Settled by invoice

Gas is billed monthly instead of deducted on-chain per operation.

Proven at scale

## The engine behind 100M+ sponsored transactions

100M+

transactions sponsored

250M+

total transactions processed

100+

chains supported

<2s

inclusion time on L2s

SOC 2 Type 1 certifiedOFAC sanctions screening24/7 supportAudited by OpenZeppelin & QuantstampCo-authors of ERC-4337, ERC-7677 & ERC-7679

In production

## Teams that sponsor gas with Pimlico

[

Zora

The onchain creator network sponsors gas with Pimlico so creators and collectors never need ETH first.

](https://zora.co)

[

Picnic

The consumer investing app abstracts gas away entirely for its users with Pimlico.

](https://usepicnic.com)

[

Safe

The most battle-tested smart account standard pairs with Pimlico for bundling and gas sponsorship.

](https://safe.global)

[

Circle

The issuer of USDC builds smart wallet infrastructure on Pimlico, including gasless USDC transfers.

](https://circle.com)

[See all customers](https://www.pimlico.io/customers.md)

Run it in production

### Watch every sponsorship, end to end

Every sponsored operation is traceable in the dashboard from the moment it arrives: received, added to the mempool, submitted, and included on-chain, with millisecond timings and transaction hashes at every step.

When someone asks where a transaction went, you answer in seconds, not by grepping logs.

Track user operation

0xf3523157c238413335e2f5cb6325255d7103272bb7cf221a5779bf4f5840c1ef

Received

2026-06-11 20:01:13.054

Added to Mempool

2026-06-11 20:01:13.054 (+0ms)

Submitted

2026-06-11 20:01:13.341 (+287ms)

Tx Hash: 0x223b701f...

Included Onchain

2026-06-11 20:01:13.590 (+249ms)

Tx Hash: 0x223b701f...

### Spend tracking on the dashboard

Every sponsored transaction itemized by policy, chain, and time, so you always know exactly where your gas budget went.

### Custom alerts

Set alerts on spend and budget thresholds and get notified before a limit is hit, not after sponsorship stops.

[

### Security rules on every key

Lock API keys to IP ranges, origins, and user agents, and disable individual methods, so a leaked key is a non-event.

Learn more](https://docs.pimlico.io/guides/how-to/security/protect-api-keys)

EIP-7702

### Gasless for plain EOAs. No migration.

Your users don't have to migrate to a smart account to go gasless. With EIP-7702, Pimlico sponsors transactions straight from existing EOAs, including batched, sponsored calls from external wallets via ERC-5792.

[Read the EIP-7702 guide](https://docs.pimlico.io/guides/eip7702)

1

EOA signs an authorization

An ordinary wallet, with no smart contract deployed and no assets moved.

2

Pimlico sponsors and bundles

The paymaster verifies your policy and pays the gas, same as any smart account.

3

Transaction confirmed

The account is unchanged: the user kept their address and their keys.

Works with your stack

## Sponsor from every account and signer

Sponsorship plugs in beneath whatever smart account and signer you already chose. Each one below ships with a maintained, step-by-step guide.

Smart accounts

SafeSafe (multiple signers)KernelMetaMask Smart AccountsCoinbase WalletSimple AccountTrust WalletBiconomy NexusAlchemy Light Account

Social login

DynamicPrivyMagicWeb3AuthOpenfortParaParticle NetworkLit Protocol

Passkeys

Passkey (WebAuthn) signerPasskey (WebAuthn) server

Key management

TurnkeyFireblocksDFNS

Sponsor gas on the networks your users are already on

EthereumEthereum

BaseBase

ArbitrumArbitrum

OptimismOptimism

PolygonPolygon

BNB ChainBNB Chain

AvalancheAvalanche

[See all integrations](https://www.pimlico.io/integrations.md)

Where it runs

## Built for the way your users transact

[

### Consumer apps

Your next million users don't own ETH. Sponsorship is acquisition spend that converts.

Learn more](https://www.pimlico.io/solutions/consumer-apps.md)

[

### Wallets

Make your installed base gasless on the execution layer behind the biggest wallets onchain.

Learn more](https://www.pimlico.io/solutions/wallets.md)

[

### AI agents

Agents that act the instant they decide, sponsored within the hard limits you set.

Learn more](https://www.pimlico.io/solutions/ai-agents.md)

## Frequently asked questions

**How am I billed for sponsored gas?**

Pimlico fronts the gas on-chain and bills you the actual cost plus a 10% surcharge on mainnet (none on testnets). You see every sponsored transaction itemized in the dashboard, and Enterprise plans get lower pre-negotiated rates.

[Full pricing details](https://www.pimlico.io/pricing.md)

**Can I control how much I sponsor?**

Yes. Sponsorship policies let you cap spend per transaction, per user, and per campaign, so a viral day never becomes a runaway bill. Policies are configured in the dashboard and apply instantly without redeploying.

**Which chains does this work on?**

Gas sponsorship works on all 100+ chains Pimlico supports, including Ethereum, Base, Arbitrum, Optimism, Polygon, and Gnosis. If you need a chain we have not launched yet, talk to us. We partner with new chains continuously.

[Partner with us on gas](https://www.pimlico.io/products/ecosystem-gas-programs.md)

**Do my users need a special wallet?**

No. Every major smart account works out of the box, including Safe, Kernel, MetaMask Smart Accounts, and Coinbase Wallet. With EIP-7702, plain EOAs get sponsored transactions too, no migration required. If you are starting fresh, permissionless.js creates accounts in a few lines.
