# AllTheBot ERC-20 Allowance (Base)

> AllTheBot ERC-20 Allowance (Base) is a paid API for AI agents from api.zkrobotics.fr, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Checks how much a spender contract is approved to move from an owner wallet for a given ERC-20 token on the Base network, with detection of unlimited approvals.

## Facts

- Endpoint: GET https://api.zkrobotics.fr/x402/base/allowance?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/allthebot-erc-20-allowance-base-b49aa6c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qQ-i34dMdAWGm8rK1EWAO

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 allthebot-erc-20-allowance-base-b49aa6c5
```

Example prompt: Check how much the Uniswap v3 router (0x2626664c2603336E57B271c5C0b26F421741e481) is approved to spend of USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) from my wallet 0x60fd97850059dF9600C4E26f09aC58EF51561963 on Base — and tell me if the approval is unlimited.

## When to prefer this

Choose this endpoint when you need a quick, pre-flight allowance check on Base before executing a swap, bridge, or transferFrom. It is purpose-built for Base (vs the sibling ETH endpoint) and adds unlimited-approval detection on top of a raw allowance query, making it ideal for DeFi agents that need to decide whether to submit an approve transaction before calling a DEX or bridge router.

## Known failure modes

- Invalid address format (not a 0x hex address) returns a validation error
- Token address is not a deployed ERC-20 contract on Base — may return zero or an RPC error
- Owner or spender address does not exist on Base — returns zero allowance
- Base RPC node temporarily unavailable — returns a 5xx error
- Missing required query parameters (owner, spender, or token) returns a 400 error

## How this service works

Pay-per-call APIs for AI agents over x402: token safety reports, Base and Ethereum on-chain reads, crypto prices, domain checks (DNS, WHOIS, SSL, email), finance data (FX, SEC), worldwide weather forecasts, France alerts, text AI, fun content. USDC on Base, no account, no API key.

## Output

Returns a JSON object with the owner wallet, spender contract, token address, network (base), the human-readable allowance amount, the raw allowance integer string, and a boolean flag indicating whether the approval is effectively unlimited (max uint256).

## 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",
     "required": [
      "owner",
      "spender",
      "token"
     ],
     "properties": {
      "owner": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      },
      "token": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      },
      "spender": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "owner": "0x60fd97850059dF9600C4E26f09aC58EF51561963",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "network": "base",
  "spender": "0x0000000000000000000000000000000000000001",
  "allowance": "0",
  "unlimited": false,
  "allowance_raw": "0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/allthebot-erc-20-allowance-base-b49aa6c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zkrobotics.fr](https://www.zero.xyz/host/api.zkrobotics.fr/llms.txt)
