{"uid":"cap_qw3F7jTxQbQrtQxnMAAPM","slug":"wallet-profile-hygiene-erc-20-allowance-scanner-08a35f8e","name":"Wallet Profile Hygiene — ERC-20 Allowance Scanner","description":"Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.","url":"https://api.firstmention.uk/s/walletprofile/hygiene?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Base address, 0x + 40 hex."},"range_blocks":{"type":"integer","description":"How many recent blocks to scan (default 20000, max 200000)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ok":{"type":"boolean"},"address":{"type":"string"},"unlimited":{"type":"number"},"allowances":{"type":"array"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"address":"0x4200000000000000000000000000000000000006","unlimited":2,"allowances":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cOVogyIf5SSbSgybNCwJx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans a Base blockchain address for ERC-20 token allowances, flagging unlimited approvals and listing all active allowances over a configurable block range.","exampleAgentPrompt":"Check the token allowance hygiene for the Base wallet 0x4200000000000000000000000000000000000006 — scan the last 50000 blocks and tell me how many unlimited approvals it has and which contracts are approved to spend tokens.","exampleUseCases":[{"title":"Pre-transfer wallet security audit","prompt":"Before I move funds out of 0xAbc123...def, can you scan its ERC-20 allowances on Base over the last 20000 blocks and flag any unlimited approvals I should revoke first?"},{"title":"DeFi risk review for investor report","prompt":"I need to audit wallet 0x1234567890abcdef1234567890abcdef12345678 for risky token approvals — check the last 100000 blocks on Base and tell me every contract that has an unlimited spending allowance."},{"title":"Automated wallet hygiene check for onboarding","prompt":"Before we whitelist this wallet address 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef in our system, can you check its Base allowances over the past 20000 blocks to see if there are any active or unlimited token approvals we should know about?"}],"resultDescription":"Returns a JSON object with an `ok` boolean, the queried `address`, a count of `unlimited` allowances (integer), and an `allowances` array listing each active ERC-20 approval found within the scanned block range.","failureModes":["Invalid address format (not 0x + 40 hex) — likely returns error or empty result","Block range exceeds 200000 — rejected with validation error","Address has no on-chain activity in the scanned range — returns empty allowances array","Payment failure via x402/USDC — HTTP 402 returned before data is served","RPC timeout for very large block ranges close to 200000"],"whenToPreferThis":"Use this endpoint when you need on-chain ERC-20 allowance data specifically for Base (eip155:8453) addresses, particularly to identify unlimited approvals that pose security risks. It is well-suited for wallet hygiene checks, pre-transaction security audits, or DeFi risk assessments where you need a quick, pay-per-call lookup without maintaining your own node or indexer. Prefer this over generic blockchain explorers when you need structured, machine-readable output about allowances rather than a human-facing UI.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T18:41:55.106Z","isFirstParty":false,"canonicalSlug":"wallet-profile-hygiene-erc-20-allowance-scanner-08a35f8e"}