# ERC-20 Allowance Lookup on Base

> ERC-20 Allowance Lookup on Base is a paid API for AI agents from ari001.tailb4ac3a.ts.net, paid per call via x402, $0.003/call, status down (last checked 2026-12-03).

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.

## Facts

- Endpoint: GET https://ari001.tailb4ac3a.ts.net/v1/ventures/x402_chain_reads_v1/erc20_allowance?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: down
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-20-allowance-lookup-on-base-f3b209c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_avYh35PEacUfjrI2d07Ih

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 erc-20-allowance-lookup-on-base-f3b209c4
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc-20-allowance-lookup-on-base-f3b209c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ari001.tailb4ac3a.ts.net](https://www.zero.xyz/host/ari001.tailb4ac3a.ts.net/llms.txt)
