{"uid":"cap_KH4QQslIc25ERTzA6Z3-B","slug":"chain-erc20-allowance-70e7e83f","name":"chain-erc20-allowance","description":"ERC-20 allowance a wallet has granted a spender, and whether it is unlimited: send \"token,owner,spender\". Default chain Base; prefix another: ethereum:, arbitrum:, optimism:, polygon:, bsc:. $0.01 per call.","url":"https://chain.intel.rallylive.ca/chain/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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_LhjzMpHbqs2QsowJqeqjv","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":"Returns the ERC-20 token allowance a wallet owner has granted to a spender, including whether the allowance is unlimited, across multiple EVM chains.","exampleAgentPrompt":"What's the USDC allowance that my wallet 0xAbC...123 has granted to the Uniswap router 0xDef...456 on Base — and is it unlimited?","exampleUseCases":[{"title":"Audit DeFi protocol approvals","prompt":"Check what allowance my wallet 0xAbc...111 has given to the Aave lending pool contract 0xDef...222 for USDC on Ethereum — I want to know if it's an unlimited approval."},{"title":"Security scan before token transfer","prompt":"Before I revoke my approvals, can you look up whether the spender 0x789...abc still has any allowance to spend DAI from my wallet 0x123...def on Arbitrum?"},{"title":"Monitor DEX router permissions on Polygon","prompt":"On Polygon, check the WMATIC allowance my wallet 0xFoo...Bar has approved for the QuickSwap router 0xBaz...Qux — tell me the exact amount and if it's set to unlimited."}],"resultDescription":"Returns the numeric allowance amount the owner wallet has approved for the spender to spend of the given ERC-20 token, plus a boolean or flag indicating whether the allowance is effectively unlimited (max uint256). Covers Base by default; other chains can be prefixed (ethereum:, arbitrum:, optimism:, polygon:, bsc:).","failureModes":["Invalid or malformed token/owner/spender address returns an error","Unsupported chain prefix returns an error or empty result","Contract address is not an ERC-20 token returns an unexpected result","Network congestion or RPC issues may cause timeouts","Missing required input parameters (token, owner, spender) returns validation error"],"whenToPreferThis":"Use this endpoint when you need to programmatically check ERC-20 spending approvals across Base and other major EVM chains in a single call. It is ideal for security audits, DeFi automation agents that need to verify approvals before executing swaps or deposits, and wallet monitoring tools that track unlimited approvals. Prefer this over a raw RPC call when you need a simple, paid-per-call API without managing your own node infrastructure across multiple chains.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:58.666Z","isFirstParty":false,"canonicalSlug":"chain-erc20-allowance-70e7e83f"}