# BaseDue Allowance Checker

> BaseDue Allowance Checker is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-19).

Returns the ERC-20 token allowance (approved spending amount) that an owner has granted to a spender on the Base blockchain, with liquidity depth and pool data for USDC.

## Facts

- Endpoint: GET https://api.firstmention.uk/s/basedue/allowance?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basedue-allowance-checker-f0d0919a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uWx_A0116r6eyGEQLsJ3Q

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 basedue-allowance-checker-f0d0919a
```

Example prompt: Check how much USDC my wallet 0xOwnerAddress is allowing spender 0xSpenderAddress to use on Base — is the allowance infinite or what's the exact limit?

## When to prefer this

Use this endpoint when you need on-chain ERC-20 allowance data specifically on the Base network (eip155:8453), especially for USDC. Preferred over generic blockchain RPC calls because it bundles liquidity pool depth and verdict signals alongside the raw allowance, making it suitable for DeFi safety checks and pre-transaction audits. Pay-per-call at $0.01 USDC with x402 — no API key required.

## Known failure modes

- Invalid or missing owner/spender/token address returns error
- Non-existent address pair returns zero allowance
- Unsupported token contract returns empty pool data
- Network connectivity to Base RPC fails
- Payment of $0.01 USDC via x402 not completed — returns 402

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

Returns a JSON object with: ok (boolean success), chain (e.g. 'base'), token metadata (symbol, address, decimals), liquidity summary (poolCount, bestDepthUsd), a verdict string (e.g. 'established'), and the specific allowance amount as a string. Allowance 'infinite' flag indicates unlimited approvals.

## 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"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "token": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "flags": {
       "type": "array"
      },
      "score": {
       "type": "number"
      },
      "token": {
       "type": "string"
      },
      "symbol": {
       "type": "string"
      },
      "verdict": {
       "type": "string"
      },
      "liquidity_usd": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "allowance": "0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basedue-allowance-checker-f0d0919a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
