# Beggar Bot ERC-20 Allowance Checker (Base mainnet)

> Beggar Bot ERC-20 Allowance Checker (Base mainnet) is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-22).

Checks the ERC-20 token allowance a spender has been granted by an owner on Base mainnet, supporting raw calldata and EIP-712 typed data signing.

## Facts

- Endpoint: POST https://beggar-bot-demand.beggarbot.workers.dev/v1/allowance?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-erc-20-allowance-checker-base-mainnet-be61f351
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gcmyOZI8A_MIrXm1c-W0O

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 beggar-bot-erc-20-allowance-checker-base-mainnet-be61f351 -d '<json body>'
```

Example prompt: Check how much USDC allowance the address 0xAbC...123 has granted to spender 0xDeF...456 on Base mainnet.

## When to prefer this

Use this endpoint when you need a live, on-chain ERC-20 allowance read on Base mainnet (or Base Sepolia for testing) and want a simple JSON result without setting up your own RPC connection. It supports raw calldata and EIP-712 typed data, making it useful for agents that need to verify approvals before executing DeFi transactions. Prefer this over generic RPC calls when you want a managed, paid-per-call service with built-in USDC support.

## Known failure modes

- Invalid or malformed contract address returns an error
- Owner or spender address not found on chain returns zero allowance
- Unsupported chain value returns an error
- Missing required fields (token, owner, spender) returns a validation error
- Payment not included or insufficient USDC payment via x402 returns 402
- Network congestion or RPC errors may cause timeouts

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

Returns a JSON response containing the current allowance amount a spender is approved to transfer on behalf of the owner for the specified ERC-20 token contract on Base mainnet, along with relevant token metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "token/collection contract"
  },
  "data": {
   "type": "string",
   "description": "0x calldata (with to = token)"
  },
  "chain": {
   "type": "string",
   "description": "base default"
  },
  "owner": {
   "type": "string",
   "description": "owner for live read"
  },
  "token": {
   "type": "string"
  },
  "spender": {
   "type": "string"
  },
  "typed_data": {
   "type": "object",
   "description": "EIP-712 typed data to sign"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-erc-20-allowance-checker-base-mainnet-be61f351/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
