# Wallet Profile Hygiene — ERC-20 Allowance Scanner

> Wallet Profile Hygiene — ERC-20 Allowance Scanner 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-20).

Scans a Base blockchain address for ERC-20 token allowances, flagging unlimited approvals and listing all active allowances over a configurable block range.

## Facts

- Endpoint: GET https://api.firstmention.uk/s/walletprofile/hygiene?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-profile-hygiene-erc-20-allowance-scanner-08a35f8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qw3F7jTxQbQrtQxnMAAPM

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 wallet-profile-hygiene-erc-20-allowance-scanner-08a35f8e
```

Example prompt: Check the token allowance hygiene for the Base wallet 0x4200000000000000000000000000000000000006 — scan the last 50000 blocks and tell me how many unlimited approvals it has and which contracts are approved to spend tokens.

## When to prefer this

Use this endpoint when you need on-chain ERC-20 allowance data specifically for Base (eip155:8453) addresses, particularly to identify unlimited approvals that pose security risks. It is well-suited for wallet hygiene checks, pre-transaction security audits, or DeFi risk assessments where you need a quick, pay-per-call lookup without maintaining your own node or indexer. Prefer this over generic blockchain explorers when you need structured, machine-readable output about allowances rather than a human-facing UI.

## Known failure modes

- Invalid address format (not 0x + 40 hex) — likely returns error or empty result
- Block range exceeds 200000 — rejected with validation error
- Address has no on-chain activity in the scanned range — returns empty allowances array
- Payment failure via x402/USDC — HTTP 402 returned before data is served
- RPC timeout for very large block ranges close to 200000

## 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 an `ok` boolean, the queried `address`, a count of `unlimited` allowances (integer), and an `allowances` array listing each active ERC-20 approval found within the scanned block range.

## 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",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Base address, 0x + 40 hex."
      },
      "range_blocks": {
       "type": "integer",
       "description": "How many recent blocks to scan (default 20000, max 200000)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "address": {
       "type": "string"
      },
      "unlimited": {
       "type": "number"
      },
      "allowances": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "address": "0x4200000000000000000000000000000000000006",
  "unlimited": 2,
  "allowances": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wallet-profile-hygiene-erc-20-allowance-scanner-08a35f8e/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)
