{"uid":"cap_rpJjuoBZpul5T2Pg7q9GU","slug":"allthebot-base-erc-20-allowance-92439643","name":"AllTheBot Base ERC-20 Allowance","description":"ERC-20 allowance / token approval check on Base: how much a spender can spend for an owner, with unlimited-approval detection.","url":"https://velux.taild4d007.ts.net:8443/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":{"...":"...","network":"base"}},"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_SgJuB7Pwe7Hfm6LSuF14z","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":"Returns the ERC-20 token allowance granted by an owner address to a spender address on the Base network","exampleAgentPrompt":"Check how much USDC (0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA) the Uniswap router (0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24) is allowed to spend from my wallet 0xAbCd1234AbCd1234AbCd1234AbCd1234AbCd1234 on Base.","exampleUseCases":[{"title":"DeFi approval audit before swap","prompt":"Before I do this swap on Base, check how much of my USDC token at 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA the Uniswap v3 router 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24 is currently approved to spend from 0xAbCd1234AbCd1234AbCd1234AbCd1234AbCd1234."},{"title":"Security check on unknown approval","prompt":"I got an alert that my wallet 0x1111222233334444555566667777888899990000 may have approved a suspicious contract 0xDeAdBeEf00000000000000000000000000000001 to spend my WETH token at 0x4200000000000000000000000000000000000006 on Base — can you check what the current allowance is?"},{"title":"Smart contract integration verification","prompt":"We're integrating a new DEX aggregator at 0xAggregator1111111111111111111111111111111 into our app — verify that our treasury wallet 0xTreasury2222222222222222222222222222222222 has the expected allowance set for token 0xToken3333333333333333333333333333333333333 on Base."}],"resultDescription":"A JSON object containing the current ERC-20 allowance amount that the owner has granted to the spender for the specified token on the Base network, along with the network identifier and the queried addresses.","failureModes":["Invalid Ethereum address format (not matching 0x + 40 hex chars) returns a validation error","Token address is not a valid ERC-20 contract on Base — may return zero or an RPC error","Owner or spender address is valid format but has no on-chain history — returns zero allowance","Base RPC node temporarily unavailable — service returns a timeout or 5xx error","Missing required fields (owner, token, or spender) causes a 400 bad request"],"whenToPreferThis":"Use this endpoint when you need a live, on-chain read of an ERC-20 allowance on Base L2 specifically, pay-per-call with no API key or account setup. Prefer it for one-off agent tasks, DeFi security checks, or when you want to verify approvals programmatically without setting up an RPC provider. If you need allowance data on other chains (Ethereum mainnet, Polygon, etc.) you will need a different service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:45:46.107Z","isFirstParty":false,"canonicalSlug":"allthebot-base-erc-20-allowance-92439643"}