{"uid":"cap_tJic9ndBgHKFsNGHiEauq","slug":"base-erc-20-allowance-checker-bd5693c2","name":"Base ERC-20 Allowance Checker","description":"Call when an agent needs ERC-20 allowance(owner, spender) on Base, raw and human when decimals() is readable. Send token, owner, and spender. Read-only. No spend. Send JSON {\"token\":\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",\"owner\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\"spender\":\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\"}. Exact $0.002 USDC on Base. Try unpaid POST /v1/sandbox/base-erc20-allowance first.","url":"https://agentshelf.syntexa.ch/v1/base-erc20-allowance?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"owner":{"type":"string","examples":["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"],"description":"Token holder who granted the allowance. Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045. EIP-55 or all one case."},"token":{"type":"string","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"description":"ERC-20 contract on Base. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (Circle USDC). allowance(owner, spender) is read-only."},"spender":{"type":"string","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"description":"Account allowed to spend the tokens. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. EIP-55 or all one case."}}},"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_PxzN1aktZ447Y6rb_tKNA","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":"Returns the ERC-20 token allowance (raw and human-readable) that a specified owner has granted to a spender on the Base blockchain","exampleAgentPrompt":"What's the USDC allowance that address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 has granted to spender 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — give me both the raw amount and the human-readable figure?","exampleUseCases":[{"title":"DeFi approval audit before swap","prompt":"Before I proceed with this swap, can you check how much USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) my wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 has approved the Uniswap router 0x2626664c2603336E57B271c5C0b26F421741e481 to spend on Base?"},{"title":"Smart contract allowance verification","prompt":"I need to verify whether this contract 0x4200000000000000000000000000000000000006 has been granted any allowance to spend tokens from owner 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 for the USDC token 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — show me the raw and human-readable amounts."},{"title":"Security check for suspicious approval","prompt":"Someone told me a suspicious contract might have a large token approval on my address — can you check the ERC-20 allowance for owner 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 and spender 0xDeadBeef00000000000000000000000000000000 on the USDC contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base?"}],"resultDescription":"Returns the token allowance in two forms: the raw integer value (as stored on-chain in base units) and the human-readable decimal amount (computed using the token's decimals() value if available). If decimals() is unreadable, only the raw value is returned.","failureModes":["Invalid or non-ERC-20 token contract address returns an error or empty allowance","Owner or spender address is malformed — rejected with a validation error","Token contract does not expose decimals() — human-readable amount may be unavailable","Network issues reaching the Base RPC endpoint — returns timeout or connectivity error","Payment not included or insufficient — requires exactly $0.002 USDC on Base via x402"],"whenToPreferThis":"Use this endpoint when you need a quick, read-only lookup of ERC-20 allowances specifically on the Base network and want both raw and human-readable output in a single call. Prefer it over direct RPC calls when you don't have a Base node connection or want to avoid managing decimals parsing yourself. It is especially useful in agent workflows where you need to verify approval status before triggering a token transfer or DeFi interaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:33:50.230Z","isFirstParty":false,"canonicalSlug":"base-erc-20-allowance-checker-bd5693c2"}