{"uid":"cap_6FMIZfcvQ0J8smH_p9NtV","slug":"erc20-allowance-checker-multi-chain-9e353e17","name":"ERC20 Allowance Checker (Multi-Chain)","description":"Use this before transferFrom/x402/Permit flows or for approval hygiene: ERC20 allowance owner→spender, unlimited flag, owner balance and spendable-now amount. Multi-chain. Example: {token, owner, spender, chain:\"base\"}. $0.002.","url":"https://api.axiomworks.co.uk/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":["token","owner","spender"],"properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string","description":"EVM chain (default base)"},"owner":{"type":"string","description":"0x token holder"},"token":{"type":"string","description":"0x ERC20 token"},"spender":{"type":"string","description":"0x approved spender (router, Permit2, x402 facilitator…)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"allowance":{"type":"string"},"unlimited":{"type":"boolean"},"allowance_raw":{"type":"string"},"owner_balance":{"type":["string","null"]},"spendable_now":{"type":["string","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4J7G11VyCk8hiq-lWUerF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches ERC20 token allowance, unlimited flag, owner balance, and spendable amount for a given owner-spender pair on multiple EVM chains.","exampleAgentPrompt":"Before I execute the swap, check whether the Uniswap router (0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD) is approved to spend my USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) on behalf of my wallet (0xAbCd...1234) on Ethereum, and tell me the allowance, whether it's unlimited, and how much I can actually spend right now.","exampleUseCases":[{"title":"Pre-swap allowance check on Base","prompt":"Before my agent executes a token swap, check if the DEX router 0x2626664c2603336E57B271c5C0b26F421741e481 is approved to spend my WETH (0x4200000000000000000000000000000000000006) from wallet 0xDeAd...BeeF on Base, and tell me the current allowance and spendable amount."},{"title":"Permit2 approval audit before x402 payment","prompt":"I'm about to do an x402 payment — can you check the Permit2 contract (0x000000000022D473030F116dDEE9F6B43aC78BA3) allowance for my USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) from my wallet 0xAaaa...1111 on Base, and also tell me if it's set to unlimited?"},{"title":"Approval hygiene check before DeFi onboarding","prompt":"I want to make sure the Aave lending pool (0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2) doesn't already have an excessive allowance on my DAI (0x6B175474E89094C44Da98b954EedeAC495271d0F) from address 0xF00d...C0de on Ethereum — show me the allowance, whether it's unlimited, and my current DAI balance."}],"resultDescription":"Returns the approved allowance as a human-readable string, a boolean flag indicating whether the allowance is effectively unlimited, the raw allowance in wei, the owner's token balance (if available), and the spendable-now amount (the minimum of allowance and balance).","failureModes":["Invalid or non-checksummed address returns a 400 error","Unsupported chain name returns a validation error","Token address is not an ERC20 contract — call may fail or return zero allowance","RPC node unavailability causes a timeout or 500 error","Owner balance may be null if token contract does not support balanceOf standard"],"whenToPreferThis":"Use this endpoint when an AI agent needs to check ERC20 approval status before executing transferFrom, Permit, or x402 payment flows, or when auditing existing approvals for security hygiene. It is especially useful for multi-chain DeFi workflows where knowing both the allowance and the spendable-now amount (min of allowance and balance) is needed in a single call. Prefer this over raw RPC calls when you need a normalized, human-readable response with the unlimited flag computed automatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:35:56.261Z","isFirstParty":false,"canonicalSlug":"erc20-allowance-checker-multi-chain-9e353e17"}