{"uid":"cap_zcVpqk1zSmTNmk9e8Pf57","slug":"erc-20-token-allowance-lookup-ffc86172","name":"ERC-20 Token Allowance Lookup","description":"Use when you need how much of an ERC-20 token a spender is approved to move from an owner, on Base, Ethereum, Arbitrum, Optimism or Polygon, via allowance(owner, spender). Returns raw units and decimal value.","url":"https://biosfera.46-62-215-147.sslip.io/o/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","arbitrum","optimism","polygon"],"type":"string"},"owner":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"spender":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_EAkFSD7z5_gByFdZ5ndvs","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 amount of an ERC-20 token a spender is approved to transfer on behalf of an owner, in both raw units and decimal value, across major EVM chains.","exampleAgentPrompt":"What's the USDC allowance that the Uniswap v3 router (0xE592427A0AEce92De3Edee1F18E0157C05861564) has to spend from my wallet (0xAbCd...1234) on Ethereum?","exampleUseCases":[{"title":"DeFi approval safety audit","prompt":"Check how much WETH the Aave lending pool at 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 is approved to spend from my wallet 0xDeAd...bEeF on Ethereum — I want to make sure I haven't given it an unlimited approval."},{"title":"DEX router allowance check","prompt":"Before I submit a swap, can you look up the current USDC allowance that the Uniswap v3 router 0xE592427A0AEce92De3Edee1F18E0157C05861564 has on behalf of 0x1234...abcd on Base?"},{"title":"Token approval monitoring for a vault","prompt":"Check the DAI allowance on Polygon for spender 0x794a61358D6845594F94dc1DB02A252b5b4814aD from owner 0xABCD...7890 — I need to know if the Aave vault is still authorized to pull funds."}],"resultDescription":"Returns the approved allowance amount in raw token units (e.g. wei-equivalent integers) and as a human-readable decimal value adjusted for the token's decimals, along with metadata such as token symbol and decimal precision.","failureModes":["Invalid Ethereum address format for owner, spender, or token returns a 400 error","Unsupported chain name returns a validation error","Token address that is not a valid ERC-20 contract may return zero or a contract call error","RPC node timeout or chain congestion may cause slow or failed responses","Zero allowance returned when spender has not been approved — not an error, but may be misread as a failure"],"whenToPreferThis":"Use this endpoint when you need to check on-chain ERC-20 token approvals across Base, Ethereum, Arbitrum, Optimism, or Polygon without running your own RPC node. It's ideal for DeFi agents that need to verify spending permissions before executing swaps, transfers, or vault interactions, or for monitoring and auditing token approvals granted to third-party contracts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:40:28.351Z","isFirstParty":false,"canonicalSlug":"erc-20-token-allowance-lookup-ffc86172"}