{"uid":"cap_M6-DKi0bExtQOoc-H-S2s","slug":"txpreflight-erc-20-token-allowance-checker-fe414597","name":"txpreflight – ERC-20 Token Allowance Checker","description":"Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.","url":"https://api.firstmention.uk/s/txpreflight/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"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","properties":{"owner":{"type":"string"},"token":{"type":"string"},"spender":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ok":{"type":"boolean"},"infinite":{"type":"boolean"},"allowance":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"infinite":false,"allowance":"0"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3J6n9dAIfIyIiMgNUCjMY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks the current ERC-20 token allowance granted by an owner to a spender on Base, returning the allowance amount and whether it is infinite.","exampleAgentPrompt":"Can you check how much USDC the Uniswap router contract (0x2626664c2603336E57B271c5C0b26F421741e481) is allowed to spend on behalf of my wallet (0xAbc123…) on Base?","exampleUseCases":[{"title":"Pre-trade approval safety check","prompt":"Before I swap on that DEX, can you check whether the router contract already has an allowance to spend my USDT tokens, and if so how much? My wallet is 0xABC…, the token is 0xDEF…, and the spender is 0x123…."},{"title":"Revoke infinite approval audit","prompt":"I want to audit my token approvals — can you check if 0xMalicious… has an infinite allowance over my WETH (0xWETH…) from my wallet 0xMine…?"},{"title":"DeFi onboarding allowance check","prompt":"I'm about to deposit into a yield vault at 0xVault… using USDC (0xUSDC…) from 0xMyWallet…. Does the vault already have enough allowance, or do I need to approve first?"}],"resultDescription":"Returns a JSON object with: `ok` (boolean indicating request success), `allowance` (string representing the raw token allowance amount in base units), and `infinite` (boolean indicating whether the allowance is effectively unlimited/max-uint256).","failureModes":["Invalid or missing owner/spender/token address returns an error response","Non-existent token contract address may return a failed on-chain call","Network issues with Base RPC may result in a timeout or error","Incorrect address format causes validation failure","Payment not provided results in HTTP 402 response requiring x402 USDC payment on Base"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call lookup of an ERC-20 token allowance on Base without running your own RPC node or maintaining blockchain infrastructure. Ideal for agents performing pre-transaction safety checks, approval audits, or DeFi workflow automation where cost-per-call billing in USDC is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:12:04.680Z","isFirstParty":false,"canonicalSlug":"txpreflight-erc-20-token-allowance-checker-fe414597"}