{"uid":"cap_avYh35PEacUfjrI2d07Ih","slug":"erc-20-allowance-lookup-on-base-f3b209c4","name":"ERC-20 Allowance Lookup on Base","description":"Returns an ERC-20 allowance as a uint256 for a token, owner and spender on Base, read from the contract via eth_call. Base ERC-20 read of token + holder + spender addresses.","url":"https://ari001.tailb4ac3a.ts.net/v1/ventures/x402_chain_reads_v1/erc20_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","properties":{"owner":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"0x + 40 hex"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"ERC-20 contract, 0x + 40 hex"},"spender":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"0x + 40 hex"}}}},"additionalProperties":false}}},"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":"down","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_E495RLmGtlulLfm3VqRkA","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 uint256 allowance amount that a spender is permitted to withdraw from an owner's ERC-20 token balance on the Base network, via eth_call.","exampleAgentPrompt":"Check the ERC-20 allowance for token contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 — owner 0xAbCd1234...5678 has approved spender 0xDeFg5678...9012 on Base. What's the current approved amount?","exampleUseCases":[{"title":"DeFi approval safety check","prompt":"Before I swap on this Base DEX, can you check what allowance I've given the router contract 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD to spend my USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) from my wallet 0xAbCd1234567890abcdef1234567890abcdef1234?"},{"title":"Wallet approval audit","prompt":"I want to audit my wallet — can you look up how many tokens spender 0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24 is approved to pull from my address 0xAbCd1234567890abcdef1234567890abcdef1234 for the WETH contract 0x4200000000000000000000000000000000000006 on Base?"},{"title":"Smart contract integration verification","prompt":"Our contract at 0xDeFg5678901234defg5678901234defg56789012 needs to spend tokens on behalf of user 0xAbCd1234567890abcdef1234567890abcdef1234 — check whether they've approved us and for how much on the DAI token 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb on Base."}],"resultDescription":"A uint256 integer representing the number of tokens (in the token's smallest denomination) that the specified spender is authorized to withdraw from the owner's balance for the given ERC-20 contract on Base. Returns 0 if no allowance has been set.","failureModes":["Invalid address format (not 0x + 40 hex) returns a 400 or validation error","Token contract address is not a valid ERC-20 contract — call may revert or return unexpected data","Network or RPC node unavailability causes a 503 or timeout","Missing required query parameters (token, owner, or spender) results in a 400 bad request","Payment failure (x402 protocol) if USDC payment of $0.003 is not completed"],"whenToPreferThis":"Use this endpoint when you need a direct, real-time on-chain read of an ERC-20 allowance on the Base network without running your own node. Ideal for wallet security audits, pre-transaction approval checks, and DeFi agent workflows that need to verify spending permissions before executing swaps or transfers. Prefer this over general Ethereum RPC endpoints when you specifically need Base chain data and want a simple REST interface rather than raw JSON-RPC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T22:29:05.709Z","isFirstParty":false,"canonicalSlug":"erc-20-allowance-lookup-on-base-f3b209c4"}