Repository navigation
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
🟡 Heimdall Review Status
|
…-paymaster-32002-usdc-transferwithaut
Docs reviewRisk: Low (one AI review) ·
Verdict: Fits, with changes · reviewed The addition addresses gas-sponsorship troubleshooting and fits the Transactions page’s scope. Clarify that the Suggestions
What the reviewer checked
Advisory review from the Docs PR review workflow (run). It does not approve, block, or edit this PR. Add the |
|
|
||
| If you sponsor gas with CDP Paymaster and a userOperation is rejected, read the exact error code and message before you change your configuration. Policy rules such as allowed contracts, allowed methods, and spend limits can apply differently to each userOperation, so an earlier sponsored operation from the same sender does not mean a later one will qualify. | ||
|
|
||
| - **`-32002` with `request denied - no sponsorship and address can not pay with accepted token`**: Your gas policy did not sponsor the userOperation, and the sender cannot pay gas with an accepted ERC-20 token. The error `data` lists the `acceptedTokens`. If the sender should pay in a token, check that it has approved the Paymaster for enough of that token, as described in [ERC-20 gas payments](https://docs.cdp.coinbase.com/paymaster/guides/erc20-gas-payments). If the operation should be sponsored, find out why your policy did not sponsor it. |
There was a problem hiding this comment.
Separate the error outcome from its cause
The error reports that no sponsorship was applied and the address cannot pay with an accepted token, but the provided material does not establish why sponsorship was absent. State the reported outcome and direct readers to the logs for diagnosis, rather than attributing the cause to the gas policy.
| - **`-32002` with `request denied - no sponsorship and address can not pay with accepted token`**: Your gas policy did not sponsor the userOperation, and the sender cannot pay gas with an accepted ERC-20 token. The error `data` lists the `acceptedTokens`. If the sender should pay in a token, check that it has approved the Paymaster for enough of that token, as described in [ERC-20 gas payments](https://docs.cdp.coinbase.com/paymaster/guides/erc20-gas-payments). If the operation should be sponsored, find out why your policy did not sponsor it. | |
| - **`-32002` with `request denied - no sponsorship and address can not pay with accepted token`**: No sponsorship was applied, and the sender cannot pay gas with an accepted ERC-20 token. The error `data` lists the `acceptedTokens`. If the sender should pay in a token, check that it has approved the Paymaster for enough of that token, as described in [ERC-20 gas payments](https://docs.cdp.coinbase.com/paymaster/guides/erc20-gas-payments). If you expected sponsorship, use the CDP Portal Logs to identify why the request was not sponsored. |
What changed? Why?
Adds a short "Troubleshooting CDP Paymaster Rejections" section to
docs/specifications/transactions/network-fees.mdx. It explains what the CDP Paymaster-32002error (request denied - no sponsorship and address can not pay with accepted token) means and how it differs from policy rejection messages such astarget address not in allowed contractsandmethod not in allowed methods. It also points to the CDP Portal Logs tab and CDP's error reference and troubleshooting guide.Closes knowledge gap
gap-20260930-cdp-paymaster-32002-usdc-transferwithauthorizati: "A CDP Paymaster on Base returns JSON-RPC error -32002 for a USDC transferWithAuthorization call although another call from the same sender was sponsored moments earlier. What paymaster policy/configuration issue causes this, and where is it fixed?"Gaps log: https://bdocs.cbhq.net/d/base-knowledge-gaps-log
Tracking: DEVREL-859
Notes to reviewers
Primary sources:
-32002code, message, andacceptedTokensin the error data; ERC-20 payments need a token approval to the Paymaster: https://docs.cdp.coinbase.com/paymaster/guides/erc20-gas-paymentsThis deliberately does not say that the
-32002error ontransferWithAuthorizationis caused by an allowlist gap. CDP's docs describe-32002as "no sponsorship and cannot pay with an accepted token," and they list the allowlist and method rejections as separate messages. Before merge, the CDP Paymaster / Base Account SDK owners should please confirm:-32002response can come from a gas policy that did not match the call (for example, a method that is not allowlisted), and whether the response text identifies which policy rule failedThis replaces the
-32002paragraph in #2090 (network-fees.mdx) for this gap only. The section is reworded to match CDP's current error reference.How has it been tested?
node scripts/lint-mdx.js --files-from=<changed files>: 0 errors, 0 warningsnode scripts/validate-docs-structure.js: reports 2 existing redirect errors (/upgrades/denim/eip-8130) that also fail on unmodified master. This change does not introduce them.curl -sIL)Screenshots
N/A (text-only change)
Generated with Toshi