{"uid":"cap_xIsj8Jqwbl46_4W0nL6-s","slug":"erc-20-token-approval-allowance-risk-scanner-e41ecdc3","name":"ERC-20 Token Approval / Allowance Risk Scanner","description":"Token-approval / allowance risk scanner: recent ERC-20 approvals a wallet granted, which are unlimited, and to whom. Send { chain, owner, windows? }. Find risky allowances that could drain your tokens and should be revoked.","url":"https://x402-services-production.up.railway.app/api/safety/approvals","method":"POST","headers":{},"bodySchema":{"type":"object","required":["owner"],"properties":{"chain":{"type":"string","description":"Chain, default base"},"owner":{"type":"string","description":"0x wallet to scan"},"windows":{"type":"number","description":"How many ~9.5k-block windows to scan back, 1-6 (default 3)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hyBFGq7yppEg240EFzscp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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 recent ERC-20 token approvals on a given chain, identifying unlimited or risky allowances that could drain funds and should be revoked.","exampleAgentPrompt":"Can you scan my wallet 0xAbc123...def for risky or unlimited ERC-20 token approvals on Base — check the last 3 block windows and tell me which allowances I should revoke?","exampleUseCases":null,"resultDescription":"Returns a list of recent ERC-20 approvals the wallet has granted, flagging which are unlimited (max uint256), identifying the spender addresses, and highlighting allowances that pose a risk of draining tokens if exploited.","failureModes":["Invalid or malformed wallet address returns a 400 error","Unsupported chain identifier returns an error or default to Base","windows value outside 1-6 range may be rejected or clamped","No approvals found returns an empty list (not an error)","Payment failure (insufficient USDC) results in 402 response","RPC or indexing latency may cause timeouts on deep scans"],"whenToPreferThis":"Use this endpoint when a user wants to audit their wallet's ERC-20 token approval history to find risky or unlimited allowances granted to external contracts or addresses. Prefer this over generic wallet activity endpoints when the specific concern is token approval security and revocation decisions, not general transaction history.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:32:37.366Z","isFirstParty":false}