{"uid":"cap_zctSVjEbQOzjya98vGUzF","slug":"erc-20-allowance-checker-bdba5fe4","name":"ERC-20 Allowance Checker","description":"Generate an AI_POLICY.md and a pull request template with an AI-disclosure section for your open-source repo. Free, runs in your browser.","url":"https://ai-policy-kit.moneymaker-ai.workers.dev/api/erc20-allowance?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"],"type":"string"},"queryParams":{"type":"object","required":["chain","token","owner","spender"],"properties":{"chain":{"enum":["base","ethereum","bsc","arbitrum","optimism","polygon","gnosis","celo"],"type":"string"},"owner":{"type":"string","description":"0x owner address"},"token":{"type":"string","description":"0x ERC-20 contract"},"spender":{"type":"string","description":"0x spender, or up to 10 comma-separated"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"block":52787302,"chain":"base","owner":"0x5b4Ca59741DE12DC212982b342392a063492a021","risky":[],"token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","chainId":8453,"decimals":6,"allowances":[{"read_ok":true,"spender":"0x000000000022D473030F116dDEE9F6B43aC78BA3","allowance":"0","unlimited":false,"spender_type":"contract","allowance_raw":"0","exceeds_balance":false}],"owner_balance":"2.002","owner_balance_raw":"2002000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fxh7hYmSIt3ISeYVNT5ST","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current ERC-20 token allowance granted by an owner address to one or more spender addresses on a given EVM chain","exampleAgentPrompt":"Check the USDC allowance on Base that my wallet 0x5b4Ca59741DE12DC212982b342392a063492a021 has granted to the spender 0x000000000022D473030F116dDEE9F6B43aC78BA3 for the token contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.","exampleUseCases":[{"title":"Audit wallet for risky token approvals","prompt":"Can you check all the ERC-20 allowances my wallet 0x5b4Ca59741DE12DC212982b342392a063492a021 has granted to the Uniswap permit2 contract 0x000000000022D473030F116dDEE9F6B43aC78BA3 on Base for USDC token 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913? I want to know if any are unlimited."},{"title":"Verify DeFi protocol spending permission","prompt":"Before I use this new DeFi protocol on Arbitrum, can you check whether my wallet 0xAbC123... has already approved the contract 0xDeFi456... to spend my USDC token 0xUSDC789...? I want to know the exact allowance amount and whether it exceeds my balance."},{"title":"Cross-chain allowance comparison","prompt":"I want to compare the USDC allowance my address 0xOwner123... has given to the same spender 0xSpender456... on both Ethereum and Polygon — can you check the token contracts for each chain and tell me the amounts?"}],"resultDescription":"Returns a JSON object with the current block number, chain info, token symbol, decimals, owner balance, and an array of allowances per spender — each including the allowance amount (human-readable and raw), a flag for unlimited approvals, spender type, and whether the allowance exceeds the owner's current balance. Also surfaces a 'risky' array of flagged allowances.","failureModes":["Invalid or malformed 0x address returns an error or empty result","Unsupported chain name (not in enum) results in a 400 error","Token contract address that is not a valid ERC-20 returns an error","Network or RPC timeout may cause a 500 error","More than 10 comma-separated spenders may be rejected"],"whenToPreferThis":"Use this endpoint when you need to programmatically check ERC-20 token allowances for a specific wallet on any major EVM chain (Base, Ethereum, Arbitrum, Optimism, Polygon, BSC, Gnosis, Celo). It supports batch spender lookups (up to 10 addresses) and returns rich metadata including unlimited-approval flags and risky allowance detection, making it ideal for wallet security audits and DeFi pre-flight checks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:38:58.289Z","isFirstParty":false,"canonicalSlug":"erc-20-allowance-checker-bdba5fe4"}