# Ethereum ERC-20 Allowance Checker

> Ethereum ERC-20 Allowance Checker is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-03).

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.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/eth/allowance?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-ethereum-erc-20-allowance-f72a294d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q4S8LYin9OQNw4fKqtlwt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-data-tools-revmesh2074-workers-dev-ethereum-erc-20-allowance-f72a294d
```

Example prompt: Can you check how much USDC the Uniswap Permit2 contract (0x000000000022D473030F116dDEE9F6B43aC78BA3) is approved to spend from my wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-ethereum-erc-20-allowance-f72a294d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
