unsnag pimlico 1.2.0 · 7bff655a7e58 dirty
· 32m 29s mock
known gaps of mock: usage and key activity have no 1-2 hour aggregation lag; month-to-date metered units behind balance are fixed values; no rate limiting
runs / why-op-failed/opencode-google-gemini-4-argon/skill/1 · ← prev next →

why-op-failed/opencode-google-gemini-4-argon/skill/1 · pass

Outcome
pass
1/1 Checks passed
Turns
7
model turns
CLI calls
8
2 exited non-zero
Help lookups
2
reads of the CLI's help
Tokens in
58307
26679 of them cached
Tokens out
1976
written by the model
Cost
$0.09
of the model calls
Wall time
126.8s
from start to the Checks
scenario
why-op-failed
agent
opencode:google/gemini-4-argon · 2.2.7
context
skill
repeat
1 · cell ✓✓✓✓✓
findings
—
provider
Google AI Studio

checks

#checkresultdetailsignal
1
answer contains "ERC20InsufficientAllowance"
passthe answer contains "ERC20InsufficientAllowance" · expected: ERC20InsufficientAllowance

reproduce

unsnag run --scenario why-op-failed --agent opencode:google/gemini-4-argon --context skill --runs 1

Transcript highlighted = a Signal fired

#actorcontentexitsignal
0user
You have the `pimlico` CLI available.

A user says their user operation 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 failed. Why did it fail?
1agent
[skill] {"id":"pimlico"}
<skill_content name="pimlico">
# Skill: pimlico

# The `pimlico` CLI

`pimlico` reads and changes the Pimlico account the user is logged in to. Every
command takes `--json`, which prints one JSON object (errors too, as
`{"error": {...}}` on stdout). Prefer `--json` when you parse output.

Exit codes: `0` ok, `1` error, `2` a threshold was breached (`balance --below`),
`3` not logged in, `75` the API is unavailable or rate-limited. On exit 3, run
`pimlico login --no-wait --json`, show the user the `url` and `code`, then call
`pimlico login --wait --json` in the same turn until `status` is not `pending`.

## Commands

| Task | Command |
| --- | --- |
| Who am I logged in as | `pimlico whoami` |
| Credits, open invoices, runway | `pimlico balance` (`--below <usd>` exits 2 under it) |
| Invoices | `pimlico invoices` (`--open` for unpaid only) |
| Traffic and spend | `pimlico usage --last 24h\|7d\|30d --group chain\|key\|day [--key <name>]` |
| One user operation | `pimlico op <userOpHash> [--chain <id>]` |
| User operation logs | `pimlico ops [--key <name>] [--chain <id>] [--status <status>] [--last 24h\|7d\|30d]` |
| RPC request logs | `pimlico requests [--key <name>] [--method <rpc method>] [--status success\|error] [--bodies]` |
| Supported chains | `pimlico chains [--mainnet\|--testnet]` (no login needed) |
| ERC-20 paymaster tokens | `pimlico erc20 tokens [--chain <id>]` |
| API keys | `pimlico keys list [--all]`, `keys get <name>`, `keys create --name <n>`, `keys rename <name> --to <n>`, `keys disable <name>` |
| Sponsorship policies | `pimlico policies list`, `policies get <sp_id>`, `policies create --name <n> …`, `policies update <sp_id> …`, `policies enable\|disable <sp_id>` |

Run `pimlico <command> --help` for every flag.

## Things to know

- **Policies are addressed by id**, not name: find the `sp_…` id with
  `pimlico policies list` first. Policy amounts are in USD
  (`--budget-usd`, `--per-user-usd`, `--per-op-usd`); `--chains` takes
  comma-separated cha
[… 1296 more characters]
2agent
$ pimlico userops get 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 --json
{
  "error": {
    "code": "USAGE",
    "message": "error: unknown command 'userops'"
  },
  "warnings": []
}

Exit code: 1
$ pimlico rpc-logs list --user-op-hash 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 --json
{
  "error": {
    "code": "USAGE",
    "message": "error: unknown command 'rpc-logs'"
  },
  "warnings": []
}

Exit code: 1
err
3agent
$ pimlico --help
pimlico 1.2.0

Gas abstraction is a big part of the UX of any crypto product: Pimlico sponsors
your users' gas or lets them pay in ERC-20 tokens, on every popular EVM chain
and Solana. An API key is required to call our bundler and paymaster;
sponsorship policies are optional hardening that limits which operations you pay
for, on which chains and up to what amount. Usage and billing are transparent:
see what you used and what you owe with `pimlico usage` and `pimlico balance`.

Usage  pimlico <command> [options]

Account
  login                  Log in to Pimlico in the browser
  logout                 Log out and forget the stored credentials
  whoami                 Show the logged-in account

Billing & usage
  balance                Credits, open invoices, unbilled usage and headroom
  invoices               Stripe invoices for the account
  usage                  Requests, API credits and sponsored USD, EVM and Solana

Debug
  op <userOpHash>        Status and timeline of a user operation
  ops                    User operation logs with revert reason, policy and cost
  requests               RPC request logs with the error of failed calls
  solana txs             Sponsored and SPL-paid Solana transactions

Configure
  keys list              List API keys with last use and 30-day traffic
  keys get <name>        Show one API key by name
  keys create            Create an API key (the key is shown once)
  keys rename <name>     Rename an API key
  keys disable <name>    Disable an API key (cannot be re-enabled from the CLI)
  policies list          List sponsorship policies
  policies get <id>      Show one policy, including its effective caps
  policies create        Create a sponsorship policy (active unless --inactive)
  policies update <id>   Change a policy's name, chains, caps or window
  policies enable <id>   Switch a policy on
  policies disable <id>  Switch a policy off
  erc20 tokens           Tokens accepted by the ERC-20 paymaster
  chains           
[… 904 more characters]
4agent
**Examining CLI Commands**

I've discovered the CLI is on version 1.2.0. Key commands seem to be `pimlico op <userOpHash>` and `pimlico requests`. I'll try out `pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 --json` to get details and explore the `pimlico requests --help` functionality.
$ pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 --json
{
  "userOpHash": "0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920",
  "chainId": 84532,
  "status": "execution_reverted_onchain",
  "failed": true,
  "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
  "entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
  "revertReason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)",
  "policyId": "sp_amused_arclight",
  "costUsd": "0.022000",
  "timeline": [
    {
      "type": "received",
      "at": "2026-11-16T19:58:21.510Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "queued",
      "at": "2026-11-16T19:58:21.825Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "added_to_mempool",
      "at": "2026-11-16T19:58:21.945Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "submitted",
      "at": "2026-11-16T19:58:23.340Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": null
    },
    {
      "type": "execution_reverted_onchain",
      "at": "2026-11-16T19:58:28.486Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": {
        "reason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)"
      }
    }
  ],
  "warnings": []
}
$ pimlico requests --help
Usage: pimlico requests [options]

RPC request logs of your API keys, newest first, with the error code and message
of failed calls

Options:
  --key <name>        Only this API key, by name (see `pimlico keys list`);
                      every active key when omitted
  --chain <chainId>   Only this EVM chain
  --solana <cluster>  Only this Solana network instead of an EVM chain (choices:
                      "mainnet", "devnet")
  --method <name>     Only this RPC method (e.g. eth_sendUserOperation)
  --status <status>   Only successful or only failed requests (choices:
                      "success", "error")
  --last <window>     Only records from the last 24h, 7d or 30d (choices: "24h",
                      "7d", "30d", default: "24h")
  --bodies            Include the request and response bodies (JSON only)
  --limit <n>         Records per page, 1 to 100 (default: 50)
  --cursor <cursor>   Continue from a previous page's nextCursor
  --all               Walk every page until exhausted or --max; with --json
                      prints NDJSON
  --max <n>           Stop --all after this many records (default: 1000)
  --csv               Print CSV instead of a table
  -h, --help          display help for command
5agent
$ pimlico ops --chain 84532 --json
{
  "items": [
    {
      "userOpHash": "0xd5184662105a43f0dd8fd4249e9d1f49bf1e34435a5bd955248d28a8ffbb5165",
      "chainId": 84532,
      "status": "added_to_mempool",
      "pending": true,
      "transactionHash": null,
      "entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
      "sender": "0x0b9f075fc4919611621314041c022249dd4eaeff",
      "revertReason": null,
      "policy": "sp_amused_arclight",
      "costUsd": null,
      "key": "fixture-key",
      "createdAt": "2026-11-16T23:11:34.708Z"
    },
    {
      "userOpHash": "0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920",
      "chainId": 84532,
      "status": "execution_reverted_onchain",
      "pending": false,
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
      "sender": "0x478927f1a2d54fa55051417d0b5c5f43ccda6c9e",
      "revertReason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)",
      "policy": "sp_amused_arclight",
      "costUsd": "0.022000",
      "key": "fixture-key",
      "createdAt": "2026-11-16T19:58:21.511Z"
    },
    {
      "userOpHash": "0x500dbfb98c90bb415b527d1f2c3375d70b952b736643f9f7e83bf2a2e1b12233",
      "chainId": 84532,
      "status": "execution_reverted_onchain",
      "pending": false,
      "transactionHash": "0x71d08db36a55a879954f34e4ba990b0cabf52c380cf877dd1eaebf926284fb42",
      "entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
      "sender": "0xf6f39d5219837781a392e3f243fb902ea5e5a706",
      "revertReason": "ERC20: transfer amount exceeds balance",
      "policy": "sp_amused_arclight",
      "costUsd": "0.033000",
      "key": "fixture-key",
      "createdAt": "2026-11-16T17:39:39.029Z"
    },
    {
      "userOpHash": "0x3196960fc80328fa5e98e88e023843d147205eb421437d5282e218d8f92c2983",
      "chainId": 84532,
      "status": "included_onchain",
      "pending": false,
  
[… 9925 more characters]
$ pimlico requests --chain 84532 --bodies --json
{
  "items": [
    {
      "createdAt": "2026-11-16T22:48:58.996Z",
      "chainId": 84532,
      "method": "eth_sendUserOperation",
      "status": "success",
      "httpCode": 200,
      "apiCredits": 50,
      "traceId": "e0307f2da3575a29e3067b25c9ca0f2b",
      "key": "fixture-key",
      "error": null,
      "request": {
        "jsonrpc": "2.0",
        "id": 3607,
        "method": "eth_sendUserOperation",
        "params": [
          {
            "sender": "0x25207b4202a8ecfb4d1b0cfad4327398810f42d6"
          },
          "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
        ]
      },
      "response": {
        "jsonrpc": "2.0",
        "id": 3607,
        "result": "0x58bd21ccd1c3fac848f279bdb083994ed7c35b9946a0af3060ebb4dcc5b22294"
      }
    },
    {
      "createdAt": "2026-11-16T22:16:08.575Z",
      "chainId": 84532,
      "method": "eth_supportedEntryPoints",
      "status": "success",
      "httpCode": 200,
      "apiCredits": 1,
      "traceId": "3872ca2f412cd485a7cb3d745eb5ed6d",
      "key": "fixture-key",
      "error": null,
      "request": {
        "jsonrpc": "2.0",
        "id": 202,
        "method": "eth_supportedEntryPoints",
        "params": []
      },
      "response": {
        "jsonrpc": "2.0",
        "id": 202,
        "result": "0xe396b8c9e52ff494f17386cb99f6766ccb5bd68d76bc14ab0d17ed68a345b4ec"
      }
    },
    {
      "createdAt": "2026-11-16T22:14:22.407Z",
      "chainId": 84532,
      "method": "eth_sendUserOperation",
      "status": "success",
      "httpCode": 200,
      "apiCredits": 50,
      "traceId": "f1e97a3f71d53973eb1ba21f4b101b1e",
      "key": "fixture-key",
      "error": null,
      "request": {
        "jsonrpc": "2.0",
        "id": 8715,
        "method": "eth_sendUserOperation",
        "params": [
          {
            "sender": "0xb7ec9d8d3f45f50e194ec2ad08a2e60acc3d4fe7"
          },
          "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
        ]
      },
      "response": {
        "jsonrpc":
[… 34376 more characters]
6agent
$ pimlico erc20 tokens --chain 84532 --json
{
  "tokens": [
    {
      "address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "symbol": "USDC",
      "decimals": 6,
      "name": "USD Coin",
      "chainId": 84532
    }
  ],
  "warnings": []
}
7agent
**Summarizing The Findings**

I'm ready to present a clear, concise summary of what's been determined. The UserOperation I analyzed has successfully passed validation and has been submitted on Base Sepolia. Everything is crystal clear now.
User operation `0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920` failed because its execution **reverted on-chain** due to an insufficient ERC-20 token allowance.

### Details
- **Status:** `execution_reverted_onchain`
- **Revert Reason:** `ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)`
- **Chain:** Base Sepolia (`84532`)
- **Sender:** `0x478927f1a2d54fa55051417d0b5c5f43ccda6c9e`
- **EntryPoint:** `0x0000000071727De22E5E9d8BAf0edAc6f37da032` (v0.7)
- **Transaction Hash:** `0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571`
- **API Key / Policy:** `fixture-key` / `sp_amused_arclight`

### Why it failed
The user operation passed bundler validation and was included on-chain, but during the execution phase a contract (`0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108`) attempted to pull **`25000000`** token units (e.g., `25` USDC at 6 decimals) from the sender account while its current allowance (`allowance`) was **`0`**.

### How to fix it
Have the smart account (`0x478927f1a2d54fa55051417d0b5c5f43ccda6c9e`) approve spender `0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108` for at least `25000000` on the ERC-20 token contract—typically by batching an `approve(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 25000000)` call ahead of the main call in the same UserOperation.

Target CLI calls

#callexitmssignal
0
$ pimlico userops get 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 --json
{
  "error": {
    "code": "USAGE",
    "message": "error: unknown command 'userops'"
  },
  "warnings": []
}
1199ghost_command dismissed
nonzero_then_lookup dismissed
1
$ pimlico rpc-logs list --user-op-hash 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 --json
{
  "error": {
    "code": "USAGE",
    "message": "error: unknown command 'rpc-logs'"
  },
  "warnings": []
}
1198ghost_command dismissed
nonzero_then_lookup dismissed
2
$ pimlico --help
pimlico 1.2.0

Gas abstraction is a big part of the UX of any crypto product: Pimlico sponsors
your users' gas or lets them pay in ERC-20 tokens, on every popular EVM chain
and Solana. An API key is required to call our bundler and paymaster;
sponsorship policies are optional hardening that limits which operations you pay
for, on which chains and up to what amount. Usage and billing are transparent:
see what you used and what you owe with `pimlico usage` and `pimlico balance`.

Usage  pimlico <command> [options]

Account
  login                  Log in to Pimlico in the browser
  logout                 Log out and forget the stored credentials
  whoami                 Show the logged-in account

Billing & usage
  balance                Credits, open invoices, unbilled usage and headroom
  invoices               Stripe invoices for the account
  usage                  Requests, API credits and sponsored USD, EVM and Solana

Debug
  op <userOpHash>        Status and timeline of a user operation
  ops                    User operation logs with revert reason, policy and cost
  requests               RPC request logs with the error of failed calls
  solana txs             Sponsored and SPL-paid Solana transactions

Configure
  keys list              List API keys with last use and 30-day traffic
  keys get <name>        Show one API key by name
  keys create            Create an API key (the key is shown once)
  keys rename <name>     Rename an API key
  keys disable <name>    Disable an API key (cannot be re-enabled from the CLI)
  policies list          List sponsorship policies
  policies get <id>      Show one policy, including its effective caps
  policies create        Create a sponsorship policy (active unless --inactive)
  policies update <id>   Change a policy's name, chains, caps or window
  policies enable <id>   Switch a policy on
  policies disable <id>  Switch a policy off
  erc20 tokens           Tokens accepted by the ERC-20 paymaster
  chains           
[… 904 more characters]
0238
3
$ pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 --json
{
  "userOpHash": "0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920",
  "chainId": 84532,
  "status": "execution_reverted_onchain",
  "failed": true,
  "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
  "entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
  "revertReason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)",
  "policyId": "sp_amused_arclight",
  "costUsd": "0.022000",
  "timeline": [
    {
      "type": "received",
      "at": "2026-11-16T19:58:21.510Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "queued",
      "at": "2026-11-16T19:58:21.825Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "added_to_mempool",
      "at": "2026-11-16T19:58:21.945Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "submitted",
      "at": "2026-11-16T19:58:23.340Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": null
    },
    {
      "type": "execution_reverted_onchain",
      "at": "2026-11-16T19:58:28.486Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": {
        "reason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)"
      }
    }
  ],
  "warnings": []
}
0192
4
$ pimlico requests --help
Usage: pimlico requests [options]

RPC request logs of your API keys, newest first, with the error code and message
of failed calls

Options:
  --key <name>        Only this API key, by name (see `pimlico keys list`);
                      every active key when omitted
  --chain <chainId>   Only this EVM chain
  --solana <cluster>  Only this Solana network instead of an EVM chain (choices:
                      "mainnet", "devnet")
  --method <name>     Only this RPC method (e.g. eth_sendUserOperation)
  --status <status>   Only successful or only failed requests (choices:
                      "success", "error")
  --last <window>     Only records from the last 24h, 7d or 30d (choices: "24h",
                      "7d", "30d", default: "24h")
  --bodies            Include the request and response bodies (JSON only)
  --limit <n>         Records per page, 1 to 100 (default: 50)
  --cursor <cursor>   Continue from a previous page's nextCursor
  --all               Walk every page until exhausted or --max; with --json
                      prints NDJSON
  --max <n>           Stop --all after this many records (default: 1000)
  --csv               Print CSV instead of a table
  -h, --help          display help for command
0173
5
$ pimlico ops --chain 84532 --json
{
  "items": [
    {
      "userOpHash": "0xd5184662105a43f0dd8fd4249e9d1f49bf1e34435a5bd955248d28a8ffbb5165",
      "chainId": 84532,
      "status": "added_to_mempool",
      "pending": true,
      "transactionHash": null,
      "entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
      "sender": "0x0b9f075fc4919611621314041c022249dd4eaeff",
      "revertReason": null,
      "policy": "sp_amused_arclight",
      "costUsd": null,
      "key": "fixture-key",
      "createdAt": "2026-11-16T23:11:34.708Z"
    },
    {
      "userOpHash": "0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920",
      "chainId": 84532,
      "status": "execution_reverted_onchain",
      "pending": false,
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
      "sender": "0x478927f1a2d54fa55051417d0b5c5f43ccda6c9e",
      "revertReason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)",
      "policy": "sp_amused_arclight",
      "costUsd": "0.022000",
      "key": "fixture-key",
      "createdAt": "2026-11-16T19:58:21.511Z"
    },
    {
      "userOpHash": "0x500dbfb98c90bb415b527d1f2c3375d70b952b736643f9f7e83bf2a2e1b12233",
      "chainId": 84532,
      "status": "execution_reverted_onchain",
      "pending": false,
      "transactionHash": "0x71d08db36a55a879954f34e4ba990b0cabf52c380cf877dd1eaebf926284fb42",
      "entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
      "sender": "0xf6f39d5219837781a392e3f243fb902ea5e5a706",
      "revertReason": "ERC20: transfer amount exceeds balance",
      "policy": "sp_amused_arclight",
      "costUsd": "0.033000",
      "key": "fixture-key",
      "createdAt": "2026-11-16T17:39:39.029Z"
    },
    {
      "userOpHash": "0x3196960fc80328fa5e98e88e023843d147205eb421437d5282e218d8f92c2983",
      "chainId": 84532,
      "status": "included_onchain",
      "pending": false,
  
[… 9925 more characters]
0200
6
$ pimlico requests --chain 84532 --bodies --json
{
  "items": [
    {
      "createdAt": "2026-11-16T22:48:58.996Z",
      "chainId": 84532,
      "method": "eth_sendUserOperation",
      "status": "success",
      "httpCode": 200,
      "apiCredits": 50,
      "traceId": "e0307f2da3575a29e3067b25c9ca0f2b",
      "key": "fixture-key",
      "error": null,
      "request": {
        "jsonrpc": "2.0",
        "id": 3607,
        "method": "eth_sendUserOperation",
        "params": [
          {
            "sender": "0x25207b4202a8ecfb4d1b0cfad4327398810f42d6"
          },
          "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
        ]
      },
      "response": {
        "jsonrpc": "2.0",
        "id": 3607,
        "result": "0x58bd21ccd1c3fac848f279bdb083994ed7c35b9946a0af3060ebb4dcc5b22294"
      }
    },
    {
      "createdAt": "2026-11-16T22:16:08.575Z",
      "chainId": 84532,
      "method": "eth_supportedEntryPoints",
      "status": "success",
      "httpCode": 200,
      "apiCredits": 1,
      "traceId": "3872ca2f412cd485a7cb3d745eb5ed6d",
      "key": "fixture-key",
      "error": null,
      "request": {
        "jsonrpc": "2.0",
        "id": 202,
        "method": "eth_supportedEntryPoints",
        "params": []
      },
      "response": {
        "jsonrpc": "2.0",
        "id": 202,
        "result": "0xe396b8c9e52ff494f17386cb99f6766ccb5bd68d76bc14ab0d17ed68a345b4ec"
      }
    },
    {
      "createdAt": "2026-11-16T22:14:22.407Z",
      "chainId": 84532,
      "method": "eth_sendUserOperation",
      "status": "success",
      "httpCode": 200,
      "apiCredits": 50,
      "traceId": "f1e97a3f71d53973eb1ba21f4b101b1e",
      "key": "fixture-key",
      "error": null,
      "request": {
        "jsonrpc": "2.0",
        "id": 8715,
        "method": "eth_sendUserOperation",
        "params": [
          {
            "sender": "0xb7ec9d8d3f45f50e194ec2ad08a2e60acc3d4fe7"
          },
          "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
        ]
      },
      "response": {
        "jsonrpc":
[… 34376 more characters]
0213
7
$ pimlico erc20 tokens --chain 84532 --json
{
  "tokens": [
    {
      "address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "symbol": "USDC",
      "decimals": 6,
      "name": "USD Coin",
      "chainId": 84532
    }
  ],
  "warnings": []
}
0245

Final state

outcome
pass
final answer
User operation `0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920` failed because its execution **reverted on-chain** due to an insufficient ERC-20 token allowance.

### Details
- **Status:** `execution_reverted_onchain`
- **Revert Reason:** `ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)`
- **Chain:** Base Sepolia (`84532`)
- **Sender:** `0x478927f1a2d54fa55051417d0b5c5f43ccda6c9e`
- **EntryPoint:** `0x0000000071727De22E5E9d8BAf0edAc6f37da032` (v0.7)
- **Transaction Hash:** `0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571`
- **API Key / Policy:** `fixture-key` / `sp_amused_arclight`

### Why it failed
The user operation passed bundler validation and was included on-chain, but during the execution phase a contract (`0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108`) attempted to pull **`25000000`** token units (e.g., `25` USDC at 6 decimals) from the sender account while its current allowance (`allowance`) was **`0`**.

### How to fix it
Have the smart account (`0x478927f1a2d54fa55051417d0b5c5f43ccda6c9e`) approve spender `0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108` for at least `25000000` on the ERC-20 token contract—typically by batching an `approve(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 25000000)` call ahead of the main call in the same UserOperation.
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
webfetch (sandbox)

context inputs

kindsourceplaced atofferedused
skillskills/pimlico.agents/skills/pimlicotruetrue

prompt

You have the `pimlico` CLI available.

A user says their user operation 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 failed. Why did it fail?

Artifacts

run.json · agent-stdout.jsonl · opencode.db · service-mock.log