why-op-failed/claude-code-anthropic-claude-opus-5.5/name-only/1 · pass
Outcome
pass
1/1 Checks passed
Turns
4
model turns
CLI calls
5
0 exited non-zero
Help lookups
2
reads of the CLI's help
Tokens in
27124
22503 of them cached
Tokens out
1507
written by the model
Cost
$0.06
of the model calls
Wall time
20.7s
from start to the Checks
checks
| # | check | result | detail | signal |
|---|---|---|---|---|
| 1 | answer contains "ERC20InsufficientAllowance" | pass | the answer contains "ERC20InsufficientAllowance" · expected: ERC20InsufficientAllowance |
reproduce
unsnag run --scenario why-op-failed --agent claude-code:anthropic/claude-opus-5.5 --context name-only --runs 1 Transcript highlighted = a Signal fired
| # | actor | content | exit | signal |
|---|---|---|---|---|
| 0 | user | You have the `pimlico` CLI available. A user says their user operation 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 failed. Why did it fail? | ||
| 1 | agent | $ pimlico --help 2>&1 | head -50 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 [… 418 more characters] | ||
| 2 | agent | $ pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 2>&1; echo ---; pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 --json 2>&1 User op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920
Chain 84532
Status execution_reverted_onchain (failed)
Transaction 0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571
Entry point 0x0000000071727De22E5E9d8BAf0edAc6f37da032
Revert reason ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)
Policy sp_amused_arclight
Cost $0.022
Time Event Transaction
2026-11-16 19:57:54 received -
2026-11-16 19:57:54 queued -
2026-11-16 19:57:54 added_to_mempool -
2026-11-16 19:57:55 submitted 0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571
2026-11-16 19:58:01 execution_reverted_onchain 0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571
---
{
"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:57:54.030Z",
"transactionHash": null,
"data": null
},
{
"type": "queued",
"at": "2026-11-16T19:57:54.345Z",
"transactionHash": null,
"data": null
},
{
"type": "added_to_mempool",
"at": "2026-11-16T19:57:54.465Z",
"transactionHash": null,
"data": null
},
{
"type": "submitted",
"at": "2026-11-16T19:57:55.860Z",
"transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
"data": null
},
{
[… 332 more characters] | ||
| 3 | agent | $ pimlico erc20 tokens --json 2>&1 | head -40; pimlico ops --help 2>&1 | head -30 {
"tokens": [
{
"address": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
"symbol": "DAI",
"decimals": 18,
"name": "Dai Stablecoin",
"chainId": 8453
},
{
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"symbol": "USDT",
"decimals": 6,
"name": "Tether USD",
"chainId": 1
},
{
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"chainId": 1
},
{
"address": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"chainId": 10
},
{
"address": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"chainId": 137
},
{
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
Usage: pimlico ops [options]
User operation logs of your API keys, newest first, with revert reason, policy
and cost. Operations rejected on submission (validation errors such as AA24)
never become operations: find them with `pimlico requests --method
eth_sendUserOperation --status error`
Options:
--key <name> Only this API key, by name (see `pimlico keys list`); every
active key when omitted
--chain <chainId> Only this EVM chain
--status <status> Only operations whose latest status is this (choices:
"received", "failed_validation", "queued",
"added_to_mempool", "submitted", "dropped",
"included_onchain", "frontran_onchain", "failed_onchain",
"execution_reverted_onchain")
--last <window> Only records from the last 24h, 7d or 30d (choices: "24h",
"7d", "30d", default: "24h")
--limit <n> Records per page, 1 to 100 (default: 50)
--cursor <cursor> Continue from a previous page's
[… 288 more characters] | ||
| 4 | agent | The operation's own call failed on-chain because a token approval was never given. The token's `transferFrom` reverted. **What happened** (Base Sepolia, chain 84532): - The bundler accepted the op and it passed validation. It went out in tx `0x5c22ca85…5571` at 19:57:55 UTC and reverted when it ran, 19:58:01 UTC. - Revert reason: `ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)` - **Spender:** `0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108` - **Current allowance:** `0` - **Amount needed:** `25000000` (25 tokens if the token has 6 decimals, like USDC) So the op tried to have `0x4337…F108` move 25,000,000 base units of an ERC-20 from the sender's account, but the account had never approved that spender. **This was not a gas or sponsorship failure.** Policy `sp_amused_arclight` sponsored the gas and the op was included on-chain. Because it reverted during execution and not validation, the gas was still spent: **$0.022** was charged to the policy. **How to fix it:** include an `approve(0x4337…F108, ≥25000000)` call on the right token *before* the call that uses the tokens. The easiest way is to batch both calls in the same user operation. Then resend. One thing worth checking: as far as I recall, `0x4337084D…F108` is the address of **EntryPoint v0.8**, but this op went through EntryPoint **v0.7** (`0x0000000071727De2…a032`). I didn't confirm that on-chain. If it's right, the user's app may be approving or calling the wrong contract, for example an EntryPoint address hardcoded as a spender. If they meant a different spender, they should fix that address, not just add an approval. |
Target CLI calls
| # | call | exit | ms | signal |
|---|---|---|---|---|
| 0 | $ 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] | 0 | 132 | |
| 1 | $ pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 User op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 Chain 84532 Status execution_reverted_onchain (failed) Transaction 0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571 Entry point 0x0000000071727De22E5E9d8BAf0edAc6f37da032 Revert reason ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000) Policy sp_amused_arclight Cost $0.022 Time Event Transaction 2026-11-16 19:57:54 received - 2026-11-16 19:57:54 queued - 2026-11-16 19:57:54 added_to_mempool - 2026-11-16 19:57:55 submitted 0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571 2026-11-16 19:58:01 execution_reverted_onchain 0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571 | 0 | 187 | |
| 2 | $ 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:57:54.030Z",
"transactionHash": null,
"data": null
},
{
"type": "queued",
"at": "2026-11-16T19:57:54.345Z",
"transactionHash": null,
"data": null
},
{
"type": "added_to_mempool",
"at": "2026-11-16T19:57:54.465Z",
"transactionHash": null,
"data": null
},
{
"type": "submitted",
"at": "2026-11-16T19:57:55.860Z",
"transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
"data": null
},
{
"type": "execution_reverted_onchain",
"at": "2026-11-16T19:58:01.006Z",
"transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
"data": {
"reason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)"
}
}
],
"warnings": []
}
| 0 | 169 | |
| 3 | $ pimlico erc20 tokens --json {
"tokens": [
{
"address": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
"symbol": "DAI",
"decimals": 18,
"name": "Dai Stablecoin",
"chainId": 8453
},
{
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"symbol": "USDT",
"decimals": 6,
"name": "Tether USD",
"chainId": 1
},
{
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"chainId": 1
},
{
"address": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"chainId": 10
},
{
"address": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"chainId": 137
},
{
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"chainId": 8453
},
{
"address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"chainId": 42161
},
{
"address": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"chainId": 11155111
},
{
"address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"chainId": 84532
}
],
"warnings": []
}
| 0 | 303 | |
| 4 | $ pimlico ops --help Usage: pimlico ops [options]
User operation logs of your API keys, newest first, with revert reason, policy
and cost. Operations rejected on submission (validation errors such as AA24)
never become operations: find them with `pimlico requests --method
eth_sendUserOperation --status error`
Options:
--key <name> Only this API key, by name (see `pimlico keys list`); every
active key when omitted
--chain <chainId> Only this EVM chain
--status <status> Only operations whose latest status is this (choices:
"received", "failed_validation", "queued",
"added_to_mempool", "submitted", "dropped",
"included_onchain", "frontran_onchain", "failed_onchain",
"execution_reverted_onchain")
--last <window> Only records from the last 24h, 7d or 30d (choices: "24h",
"7d", "30d", default: "24h")
--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
| 0 | 183 |
Final state
outcome
pass
final answer
The operation's own call failed on-chain because a token approval was never given. The token's `transferFrom` reverted. **What happened** (Base Sepolia, chain 84532): - The bundler accepted the op and it passed validation. It went out in tx `0x5c22ca85…5571` at 19:57:55 UTC and reverted when it ran, 19:58:01 UTC. - Revert reason: `ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)` - **Spender:** `0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108` - **Current allowance:** `0` - **Amount needed:** `25000000` (25 tokens if the token has 6 decimals, like USDC) So the op tried to have `0x4337…F108` move 25,000,000 base units of an ERC-20 from the sender's account, but the account had never approved that spender. **This was not a gas or sponsorship failure.** Policy `sp_amused_arclight` sponsored the gas and the op was included on-chain. Because it reverted during execution and not validation, the gas was still spent: **$0.022** was charged to the policy. **How to fix it:** include an `approve(0x4337…F108, ≥25000000)` call on the right token *before* the call that uses the tokens. The easiest way is to batch both calls in the same user operation. Then resend. One thing worth checking: as far as I recall, `0x4337084D…F108` is the address of **EntryPoint v0.8**, but this op went through EntryPoint **v0.7** (`0x0000000071727De2…a032`). I didn't confirm that on-chain. If it's right, the user's app may be approving or calling the wrong contract, for example an EntryPoint address hardcoded as a spender. If they meant a different spender, they should fix that address, not just add an approval.
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
WebFetch (sandbox) · WebSearch (provider)
context inputs
none
prompt
You have the `pimlico` CLI available. A user says their user operation 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 failed. Why did it fail?