{"uid":"cap_q4S8LYin9OQNw4fKqtlwt","slug":"agent-data-tools-revmesh2074-workers-dev-ethereum-erc-20-allowance-f72a294d","name":"Ethereum ERC-20 Allowance Checker","description":"ERC-20 token allowance on Ethereum: how much a spender may move from an owner's wallet (allowance), raw and in token units, and whether the approval is unlimited. Use to check an approval before a swap or to audit risky open approvals; for the owner's balance use eth_token_balance. Token is a ticker such as USDC, USDT or WETH or a 0x contract; a missing contract or a non-ERC-20 one is 422, uncharged.","url":"https://agent-data-tools.revmesh2074.workers.dev/eth/allowance?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["token","owner","spender"],"properties":{"owner":{"type":"string","description":"0x wallet that gave the approval"},"token":{"type":"string","description":"Token: a ticker such as USDC or WETH, or the 0x ERC-20 contract address"},"spender":{"type":"string","description":"0x contract or wallet allowed to spend (the example is Uniswap Permit2)"}}},"responseSchema":{"type":"object","properties":{"raw":{"type":"string"},"chain":{"type":"string"},"owner":{"type":"string"},"token":{"type":"string"},"symbol":{"type":"string"},"chainId":{"type":"number"},"spender":{"type":"string"},"decimals":{"type":"number"},"allowance":{"type":"string"},"unlimited":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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_PCI-atYhdnYYaEF7BBA-5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Returns how much of an ERC-20 token a spender is approved to move from an owner's Ethereum wallet, in both raw and human-readable units, plus whether the approval is unlimited.","exampleAgentPrompt":"Can you check how much USDC the Uniswap Permit2 contract (0x000000000022D473030F116dDEE9F6B43aC78BA3) is approved to spend from my wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045?","exampleUseCases":[{"title":"Pre-swap approval verification","prompt":"Before I do this USDC swap on Uniswap, can you check whether the Permit2 contract at 0x000000000022D473030F116dDEE9F6B43aC78BA3 is approved to spend my USDC from wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, and if so how much?"},{"title":"Audit unlimited token approvals","prompt":"I want to audit my wallet's open approvals — can you check if the spender 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D has unlimited WETH approval from my wallet 0xAbCd1234abcd1234abcd1234abcd1234abcd1234?"},{"title":"DeFi security check before lending","prompt":"I'm about to deposit USDT into Aave — can you verify what USDT allowance the Aave Pool contract 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 has from my wallet 0x742d35Cc6634C0532925a3b844Bc454e4438f44e, and tell me if it's set to unlimited?"}],"resultDescription":"Returns a JSON object containing the spender's allowance in human-readable token units (allowance field), the raw uint256 string (raw), a boolean indicating whether the approval is unlimited (unlimited), the token symbol, decimals, chain name (Ethereum), chainId (1), plus the owner and spender addresses echoed back. A 404 means the token contract was not found; a 422 means the contract exists but is not an ERC-20; neither is charged.","failureModes":["404 Not Found — token ticker or contract address does not exist on Ethereum mainnet; call is not charged","422 Unprocessable Entity — contract address exists but does not implement ERC-20 allowance; call is not charged","Invalid address format for owner or spender — malformed 0x address causes a client error","Zero allowance returned — spender has not been approved and allowance is 0, which is a valid successful response","RPC timeout or node unavailability — transient Ethereum node errors may cause 5xx responses"],"whenToPreferThis":"Use this endpoint when you need to read the ERC-20 allowance on Ethereum mainnet for a specific owner–spender–token triple, especially before executing a swap, bridging operation, or DeFi deposit. It is preferable over a generic RPC call because it handles ticker-to-contract resolution, decimal normalization, and unlimited-approval detection automatically. Choose eth_token_balance instead if you need the owner's actual token balance rather than a spender's approved amount. This endpoint only covers Ethereum mainnet; use the equivalent endpoint for other chains (Base, Polygon, Arbitrum, Optimism) when appropriate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:39:58.852Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-ethereum-erc-20-allowance-f72a294d"}