{"uid":"cap_vSQjCkUa0KwbT9jknjcc4","slug":"base-erc20-allowance-lookup-3e6fc0fb","name":"Base ERC20 Allowance Lookup","description":"ERC20 spending allowance an owner has granted a spender on Base mainnet, via allowance(owner,spender).","url":"https://x402.agentindex.world/base/allowance?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"owner":{"type":"string","title":"Owner"},"token":{"type":"string","title":"Token"},"spender":{"type":"string","title":"Spender"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Lfc8iX_G3G5xccB5bWyKt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reads the ERC20 token allowance on Base mainnet — how many tokens a spender is approved to transfer from an owner's wallet — via an eth_call to the allowance(owner,spender) function.","exampleAgentPrompt":"Check how much USDC (0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA) the Uniswap v3 router (0x2626664c2603336E57B271c5C0b26F421741e481) is approved to spend from my wallet 0xAbCd1234...5678 on Base mainnet.","exampleUseCases":[{"title":"Pre-swap approval verification","prompt":"Before I swap on Aerodrome on Base, can you check if the router 0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43 is approved to spend my USDC (0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA) from my wallet 0xAbCd1234567890AbCd1234567890AbCd12345678?"},{"title":"DeFi security audit of token approvals","prompt":"I want to audit my wallet 0xAbCd1234567890AbCd1234567890AbCd12345678 — check the allowance that the Aave v3 pool 0xA238Dd8sFs3a5a7bF7a3C7C4e2C1D8F9a3B2E1A on Base has to spend my WETH token at 0x4200000000000000000000000000000000000006."},{"title":"Agent verifying spending limit before payment","prompt":"My agent is about to trigger a Base transaction — first check whether the payment contract 0x1111111111111111111111111111111111111111 has enough allowance to move DAI (0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb) from the treasury wallet 0xDeAdBeEf1234567890DeAdBeEf1234567890DeAd."}],"resultDescription":"Returns the current ERC20 allowance as an integer (or formatted token amount) representing the number of tokens the spender is approved to transfer from the owner's balance for the specified token contract on Base mainnet. A value of zero means no approval exists; a very large value (e.g. max uint256) typically indicates an unlimited approval.","failureModes":["Invalid or non-checksummed Ethereum address for owner, spender, or token — returns error or unexpected result","Token address is not a valid ERC20 contract on Base mainnet — eth_call may revert or return empty","Base RPC node downtime or network congestion causing timeout","Payment failure (x402) if insufficient USDC balance for the $0.003 fee","Querying a token that exists on Ethereum mainnet but not on Base — returns zero allowance misleadingly"],"whenToPreferThis":"Use this endpoint when you specifically need to read ERC20 token allowances on Base mainnet without managing your own RPC node or web3 infrastructure. Ideal for AI agents that need on-chain approval state before executing or recommending DeFi actions on Base. Prefer this over a generic Ethereum allowance checker when the user is operating on Base (Coinbase L2). The pay-per-call x402 model makes it cost-efficient for low-frequency spot checks without subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:36:39.504Z","isFirstParty":false,"canonicalSlug":"base-erc20-allowance-lookup-3e6fc0fb"}