---
title: "Sponsorship Policies — Spend Controls for Gas"
description: "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."
canonical: https://www.pimlico.io/products/sponsorship-policies
---

# Sponsorship Policies — Spend Controls for Gas

> Markdown mirror of https://www.pimlico.io/products/sponsorship-policies. 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](https://www.pimlico.io/products/gas-sponsorship.md): 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.
- Sponsorship Policies — Spend Controls for Gas (this page)
- [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.

---

Sponsorship Policies

# Spend controls for gas

Sponsoring gas shouldn't mean writing blank checks. Define exactly who gets sponsored, for how much, and for how long, like card spend controls but for transactions.

[Create a policy](https://dashboard.pimlico.io)[Talk to us](https://cal.com/kristofgazso/20min)

100M+transactions sponsored

100+chains

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

The rules

## Express your growth budget as policy

Every rule your growth team wants, enforced at the infrastructure layer.

### First N free

Sponsor the first 5 transactions for every new user. It is the classic onboarding policy that turns signups into active users.

### Per-transaction caps

Only sponsor transactions under $1. Small interactions stay free for users; whales pay their own way.

### Per-user limits

Cap total sponsored spend per user so no single account drains your budget.

### Campaign budgets

Give a launch, quest, or promotion its own hard budget. When it is spent, sponsorship stops on its own.

### Chain & contract targeting

Sponsor only on specific chains or for specific contracts, so the budget goes exactly where the strategy says.

### Instant changes

Tune limits in the dashboard mid-campaign. Changes apply to the very next transaction, with no redeploys.

For developers

### One line in code, everything else in the dashboard

Attach a policy ID at transaction time and Pimlico enforces the rules at sponsorship time. Your growth team iterates on budgets and limits in the dashboard while your code stays untouched.

Every sponsored transaction is itemized against its policy, so finance knows exactly where the gas budget went.

**policy.ts**

```typescript
// Attach a sponsorship policy created in the dashboard:
// "Sponsor the first 5 transactions per user, up to $1 each,
//  with a $5,000 campaign budget"
const txHash = await smartAccountClient.sendTransaction({
  to: "0x...",
  data: "0x...",
  paymasterContext: {
    sponsorshipPolicyId: "sp_first_five_free",
  },
})
```

Webhooks

### When the rules need your backend

Some rules don't fit a form: KYC state, fraud scores, allowlists that live in your database. Add a webhook to a policy and Pimlico calls your server before each sponsorship, so you approve or reject every request with logic you own.

[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,
  })
}
```

Operations

## Run policies like production infrastructure

Policies aren't set-and-forget. Everything you need to monitor, automate, and stretch them is built in.

### Spend tracking per policy

Every sponsored transaction is itemized by policy, chain, and time in the dashboard, so each campaign answers for its own budget.

### Custom alerts

Set alerts on budgets and limits and get notified before they are hit, so sponsorship never stops by surprise.

[

### Manage policies via API

Create, update, and audit policies programmatically with the sponsorship policy API, so every campaign launch can spin up its own policy automatically.

Learn more](https://docs.pimlico.io/references/platform/api/sponsorship-policies)

[

### Sponsorships valid for 24h

Extend how long a sponsorship stays valid, long enough to collect multisig signatures or schedule transactions for later.

Learn more](https://docs.pimlico.io/guides/how-to/paymasters/extending-sponsorship-duration)

At the cap

### When the budget caps out, your app keeps working

Every budget owner asks the same question: what happens when the money runs out? A cap is a clean stop, not an outage. Sponsorship ends exactly where you set the limit, with no errors and no stuck users.

And because one client and one policy engine cover both sponsorship and the fallback, switching users to paying their own fees is a config change, not a migration.

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

1

A policy hits its cap

Sponsorship stops cleanly, exactly where you set the limit.

2

Nothing breaks

Transactions outside the policy simply are not sponsored. No errors, no stuck users.

3

The same client falls back

Users pay fees in USDC, USDT, or 300+ other tokens, or cover their own gas.

Where policies do the work

## The same rules, from one app to a whole ecosystem

[

### Consumer onboarding campaigns

First-N-free per user, dollar caps, campaign budgets. When the budget is spent, sponsorship stops on its own.

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

[

### Fleets of AI agents

Cap what you fund per agent, per action, and per campaign, so a misconfigured agent can never spend past the budget you set.

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

[

### Ecosystem Gas Programs

Per-app budgets, per-user caps, time windows. The program ends when you say it does.

Learn more](https://www.pimlico.io/products/ecosystem-gas-programs.md)

Proven at scale

## The rules behind 100M+ sponsored transactions

Every sponsorship Pimlico processes runs through a policy. This is the scale of the engine that enforces yours.

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 already sponsoring gas at scale

[

Zora

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

](https://zora.co)

[

Safe

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

](https://safe.global)

[

Picnic

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

](https://usepicnic.com)

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

## Frequently asked questions

**What rules can a policy express?**

Per-user transaction counts (e.g. first 5 free), dollar caps per transaction, dollar caps per user, total campaign budgets, time windows, and chain or contract targeting. Rules combine, so "first 5 transactions under $1 each, capped at $5,000 total" is one policy.

**Do policy changes require a deploy?**

No. Policies live in your dashboard and are evaluated by Pimlico at sponsorship time. Edit a limit and it applies to the next transaction.

**What happens when a budget runs out?**

Sponsorship stops cleanly at the cap. Transactions outside the policy simply are not sponsored, so you can fall back to ERC20 gas payments or user-paid gas. You can also set alerts before limits are hit.

**What does each sponsored transaction cost us?**

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

**Can I run multiple policies at once?**

Yes. Run separate policies per campaign, per user segment, or per chain, each with its own budget and rules, and attach the right policy ID at transaction time.
