# Vibes-Coded Base ERC20 Allowance Lookup

> Vibes-Coded Base ERC20 Allowance Lookup is a paid API for AI agents from vibes-coded.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10).

Returns the current ERC20 token spending allowance granted by an owner to a spender on the Base network, with human-readable and raw decimal amounts.

## Facts

- Endpoint: POST https://vibes-coded.com/api/v1/outcomes/base-erc20-allowance?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vibes-coded-base-erc20-allowance-lookup-e973fee9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EmpoPjEavQMEQFPq6xcnE

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 vibes-coded-base-erc20-allowance-lookup-e973fee9 -d '<json body>'
```

Example prompt: What's the current USDC allowance that the contract 0xa8f2b1c3d4e5f60718293a4b5c6d7e8f90a1b2c3 has to spend on behalf of wallet 0xdbbc87e7947201eacc9a7521dda4801e99994566 on Base?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call lookup of an ERC20 token allowance specifically on the Base network without running your own blockchain node or RPC infrastructure. It is ideal for AI agents that need to gate transactions on approval status, audit wallet permissions, or verify DeFi interaction preconditions without setting up Web3 libraries.

## Known failure modes

- Invalid owner, token, or spender address format returns an error
- Contract address not found on Base network may return zero allowance or an error
- Network congestion or RPC issues may cause timeouts
- Payment failure (HTTP 402) if USDC payment is not provided or insufficient
- Allowance may be stale if queried immediately after an on-chain approval transaction

## How this service works

Pay-per-call JSON for AI agents: skill search, listing optimization, install plans, productization, and artifact risk scoring. HTTP 402 → USDC. Full skill marketplace on-site.

## Output

Returns a JSON object containing: the owner and spender addresses, the ERC20 token contract address, token decimals (e.g. 6 for USDC), the human-readable allowance amount, the raw allowance in smallest units (e.g. 50000000 for 50 USDC), a resource identifier, and a generated_at ISO timestamp indicating when the data was fetched.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "owner": "0xdbbc87e7947201eacc9a7521dda4801e99994566",
  "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "spender": "0xa8f2b1c3d4e5f60718293a4b5c6d7e8f90a1b2c3",
  "decimals": 6,
  "resource": "base-erc20-allowance",
  "allowance": 50,
  "generated_at": "2026-08-16T20:00:00Z",
  "allowance_raw": 50000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vibes-coded-base-erc20-allowance-lookup-e973fee9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vibes-coded.com](https://www.zero.xyz/host/vibes-coded.com/llms.txt)
