# AllTheBot ERC-20 Allowance (ETH)

> AllTheBot ERC-20 Allowance (ETH) 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 ERC-20 token a spender is approved to transfer from an owner wallet on Ethereum, with unlimited-approval detection.

## Facts

- Endpoint: GET https://api.zkrobotics.fr/x402/eth/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-eth-0db2c651
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BwYSXX61WtwbND7JgmBhR

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-eth-0db2c651
```

Example prompt: Can you check how much USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) the Permit2 contract (0x000000000022D473030F116dDEE9F6B43aC78BA3) is approved to spend from my wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum, and let me know if the approval is unlimited?

## When to prefer this

Use this endpoint when you need to check ERC-20 token approval status on Ethereum mainnet specifically, including unlimited-approval detection. Prefer this over generic blockchain RPC calls when you want a clean, parsed response with the unlimited flag already computed. Best suited for pre-transaction safety checks, wallet audits, and DeFi security workflows on Ethereum.

## Known failure modes

- Invalid Ethereum address format for owner, spender, or token returns a 400 error
- Token contract address does not exist or is not an ERC-20 returns an error or zero allowance
- RPC node unavailability may cause a 503 or timeout
- Spender has no approval at all returns allowance of 0 and unlimited: false

## 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 address, token contract address, spender address, network (ethereum), the human-readable allowance amount, the raw allowance as a string, and a boolean indicating whether the approval is unlimited (i.e. 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": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "network": "ethereum",
  "spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
  "allowance": "0",
  "unlimited": false,
  "allowance_raw": "0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/allthebot-erc-20-allowance-eth-0db2c651/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)
