# approvals-wallet

> approvals-wallet is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-12).

Audits all live ERC-20 token approvals for a wallet address, flags risk levels, and returns a ranked revoke plan with ready-to-use calldata.

## Facts

- Endpoint: GET https://payai.agentstools.dev/approvals/wallet?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/approvals-wallet-22089d1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2V7M9bC5_s0xemyidbhz6

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 approvals-wallet-22089d1d
```

Example prompt: Can you audit my Ethereum wallet 0xAbC123...def for live ERC-20 approvals, flag any unlimited or scam-listed ones, estimate how much is at risk, and give me a revoke plan?

## When to prefer this

Choose this endpoint when you need a comprehensive, ranked, action-ready audit of a wallet's ERC-20 approvals — especially when you want risk scoring, scam-list cross-referencing, unlimited approval detection, and ready calldata for revocations in a single call. Prefer it over generic blockchain explorers when you need structured risk analysis and a prioritized revoke plan rather than raw event logs.

## Known failure modes

- Invalid or malformed wallet address returns an error
- Unsupported network value returns validation error
- Address with no approval history returns empty approval list
- Rate limiting or upstream RPC unavailability may return timeout or 5xx
- Limit parameter exceeding cap (40) may be silently clamped or rejected

## How this service works

Standing-state audit of a wallet's live ERC-20 token approvals. Indexes every approval the address ever granted, filters to those still live on-chain, flags unlimited, stale, scam-listed and canonical spenders, estimates money-at-risk, and returns a ranked revoke plan with ready calldata plus a 0-100 risk and allow, warn or block verdict. Risk indicators, not advice.

## Output

Returns a structured audit of all live ERC-20 approvals for the wallet: each approval's spender, token, amount (flagged if unlimited), staleness, and scam-list status; an estimated USD money-at-risk figure; a 0–100 risk score; an allow/warn/block verdict; and an ordered revoke plan with ready-to-execute calldata for each revocation.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "description": "Max distinct approvals to check (default/cap 40)"
      },
      "address": {
       "type": "string",
       "description": "0x wallet address to audit (the owner)"
      },
      "network": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "description": "EVM network to audit (default base)"
      },
      "include_revoke_plan": {
       "type": "boolean",
       "description": "Include the ordered revoke plan (default true)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/approvals-wallet-22089d1d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
