# Base ERC-20 Allowance Checker

> Base ERC-20 Allowance Checker is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Returns the ERC-20 token allowance (raw and human-readable) that a specified owner has granted to a spender on the Base blockchain

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/base-erc20-allowance?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-erc-20-allowance-checker-bd5693c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tJic9ndBgHKFsNGHiEauq

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 base-erc-20-allowance-checker-bd5693c2 -d '<json body>'
```

Example prompt: What's the USDC allowance that address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 has granted to spender 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — give me both the raw amount and the human-readable figure?

## When to prefer this

Use this endpoint when you need a quick, read-only lookup of ERC-20 allowances specifically on the Base network and want both raw and human-readable output in a single call. Prefer it over direct RPC calls when you don't have a Base node connection or want to avoid managing decimals parsing yourself. It is especially useful in agent workflows where you need to verify approval status before triggering a token transfer or DeFi interaction.

## Known failure modes

- Invalid or non-ERC-20 token contract address returns an error or empty allowance
- Owner or spender address is malformed — rejected with a validation error
- Token contract does not expose decimals() — human-readable amount may be unavailable
- Network issues reaching the Base RPC endpoint — returns timeout or connectivity error
- Payment not included or insufficient — requires exactly $0.002 USDC on Base via x402

## How this service works

Call when an agent needs ERC-20 allowance(owner, spender) on Base, raw and human when decimals() is readable. Send token, owner, and spender. Read-only. No spend. Send JSON {"token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","owner":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","spender":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}. Exact $0.002 USDC on Base. Try unpaid POST /v1/sandbox/base-erc20-allowance first.

## Output

Returns the token allowance in two forms: the raw integer value (as stored on-chain in base units) and the human-readable decimal amount (computed using the token's decimals() value if available). If decimals() is unreadable, only the raw value is returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "owner": {
   "type": "string",
   "examples": [
    "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
   ],
   "description": "Token holder who granted the allowance. Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045. EIP-55 or all one case."
  },
  "token": {
   "type": "string",
   "examples": [
    "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
   ],
   "description": "ERC-20 contract on Base. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (Circle USDC). allowance(owner, spender) is read-only."
  },
  "spender": {
   "type": "string",
   "examples": [
    "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
   ],
   "description": "Account allowed to spend the tokens. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. EIP-55 or all one case."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-erc-20-allowance-checker-bd5693c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
