{"uid":"cap_QoCOVsZaRxHazxJew9-Jy","slug":"x402-agent-wallet-tools-erc20-allowance-risk-scan-c737ed73","name":"x402 Agent Wallet Tools – ERC20 Allowance Risk Scan","description":"A buyer-side control console for signature risk, EIP-712 review, transaction decoding, ERC20 allowance risk, Permit/Permit2 approvals, transaction simulation summaries, spend guard policy, receipt gate enforcement, and private-key boundaries.","url":"https://x402-wallet.558686.xyz/v1/tools/erc20-allowance-risk-scan","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"ok":true,"tool":"erc20-allowance-risk-scan","input":{"owner":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","allowances":[{"token":"USDC","spender":"0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb","trusted":false,"allowance":"unlimited"}]},"route":"/v1/tools/erc20-allowance-risk-scan","result":{"findings":[],"riskLevel":"riskLevel_example","allowances":[],"revokePlan":true},"project":"x402-agent-wallet-tools","deterministic":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.014","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.014/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eEPH1hOzh_-xGhDYIux6v","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.014","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans a wallet's ERC20 token allowances for risk exposure and returns a risk level assessment, findings, and a revocation plan for dangerous or unlimited approvals.","exampleAgentPrompt":"Can you scan my wallet 0xaaaa...aaaa for risky ERC20 allowances? I've given unlimited USDC approval to 0xbbbb...bbbb and I'm not sure if that spender is trusted — flag the risk level and tell me if I should revoke anything.","exampleUseCases":[{"title":"Audit unlimited DeFi approvals","prompt":"My wallet 0x1234...5678 has an unlimited USDC allowance set for some DeFi contract 0xabcd...efgh that I don't recognize as trusted — can you scan that allowance and tell me the risk level and whether I should revoke it?"},{"title":"Pre-trade approval safety check","prompt":"Before I execute a swap, can you check my wallet 0xdead...beef's current token allowances for ETH and WBTC to the DEX router 0x9999...1111 — I've marked the router as trusted — and let me know if anything looks risky?"},{"title":"Post-incident allowance triage","prompt":"My wallet 0xface...cafe may have been phished. Can you scan all these allowances I'm providing — some to untrusted spenders with unlimited amounts — assess the overall risk level, and give me a revocation plan to clean things up?"}],"resultDescription":"Returns a JSON object with: a boolean ok status, the tool name, echoed input, an array of risk findings (each describing a specific dangerous allowance), an overall riskLevel enum, a list of analyzed allowances, and a boolean revokePlan indicating whether revocation is recommended.","failureModes":["Invalid Ethereum address format for owner or spender returns a validation error","Malformed allowance array (missing required fields like token or spender) causes a 400 bad request","Unlimited allowance string not recognized may cause unexpected classification","Trusted flag misconfiguration may under-report risk for truly dangerous spenders","Service unavailability or payment failure (x402 protocol) returns a 402 or 5xx error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically assess the risk of a wallet's existing ERC20 token approvals before executing a transaction or after a suspected phishing event. It is purpose-built for on-chain allowance risk classification with a structured revocation recommendation, making it superior to generic blockchain explorers that list approvals without risk scoring. Best suited for DeFi safety workflows, wallet security audits, and pre-transaction hygiene checks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:40:10.216Z","isFirstParty":false}