{"uid":"cap_qQ-i34dMdAWGm8rK1EWAO","slug":"allthebot-erc-20-allowance-base-b49aa6c5","name":"AllTheBot ERC-20 Allowance (Base)","description":"Pay-per-call APIs for AI agents over x402: token safety reports, Base and Ethereum on-chain reads, crypto prices, domain checks (DNS, WHOIS, SSL, email), finance data (FX, SEC), worldwide weather forecasts, France alerts, text AI, fun content. USDC on Base, no account, no API key.","url":"https://api.zkrobotics.fr/x402/base/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["owner","spender","token"],"properties":{"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},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"owner":"0x60fd97850059dF9600C4E26f09aC58EF51561963","token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"base","spender":"0x0000000000000000000000000000000000000001","allowance":"0","unlimited":false,"allowance_raw":"0"}},"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_ojjxBhhGPdtvhr92YvKHW","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":"Checks how much a spender contract is approved to move from an owner wallet for a given ERC-20 token on the Base network, with detection of unlimited approvals.","exampleAgentPrompt":"Check how much the Uniswap v3 router (0x2626664c2603336E57B271c5C0b26F421741e481) is approved to spend of USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) from my wallet 0x60fd97850059dF9600C4E26f09aC58EF51561963 on Base — and tell me if the approval is unlimited.","exampleUseCases":[{"title":"Pre-swap allowance check","prompt":"Before I swap on Aerodrome, check whether the Aerodrome router 0x6Cb442acF35158D68425b350cC03b0fac2b4f707 is allowed to spend my USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) from wallet 0xAbCd1234...5678 on Base, and let me know the exact approved amount."},{"title":"Unlimited approval security audit","prompt":"Scan my wallet 0x60fd97850059dF9600C4E26f09aC58EF51561963 on Base — does Permit2 (0x000000000022D473030F116dDEE9F6B43aC78BA3) have an unlimited approval to move my USDC token 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913?"},{"title":"Bridge pre-flight approval check","prompt":"I'm about to bridge USDC from Base using the Across bridge contract 0xe35e9842fceaCA96570B734083f4a58e8F7C5f2A — check if it's already approved to move tokens from my wallet 0x60fd97850059dF9600C4E26f09aC58EF51561963 and by how much."}],"resultDescription":"Returns a JSON object with the owner wallet, spender contract, token address, network (base), the human-readable allowance amount, the raw allowance integer string, and a boolean flag indicating whether the approval is effectively unlimited (max uint256).","failureModes":["Invalid address format (not a 0x hex address) returns a validation error","Token address is not a deployed ERC-20 contract on Base — may return zero or an RPC error","Owner or spender address does not exist on Base — returns zero allowance","Base RPC node temporarily unavailable — returns a 5xx error","Missing required query parameters (owner, spender, or token) returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need a quick, pre-flight allowance check on Base before executing a swap, bridge, or transferFrom. It is purpose-built for Base (vs the sibling ETH endpoint) and adds unlimited-approval detection on top of a raw allowance query, making it ideal for DeFi agents that need to decide whether to submit an approve transaction before calling a DEX or bridge router.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:44:56.510Z","isFirstParty":false,"canonicalSlug":"allthebot-erc-20-allowance-base-b49aa6c5"}