# x402 Bazaar — Token Approval Risk Scanner

> x402 Bazaar — Token Approval Risk Scanner is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Lists a wallet's active ERC-20 token approvals, showing which contracts can spend tokens, allowance amounts, USD value at risk, and a risk factor score for wallet security auditing.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/token-approvals
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-token-approval-risk-scanner-63607d59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jVVNcMgCaM17sv52pURyy

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 x402-bazaar-token-approval-risk-scanner-63607d59 -d '<json body>'
```

Example prompt: Check my wallet 0xAbc123...def for all active token approvals — I want to see which contracts can spend my tokens, how much allowance they have, and which ones are risky or have high USD value at risk.

## When to prefer this

Use this endpoint when an agent or user needs to audit a wallet's ERC-20 token approval exposure — especially to identify high-risk allowances, stale permissions, or unexpected spender contracts. Preferred over manual blockchain queries when a structured, USD-valued, risk-scored response is needed without building custom indexer logic.

## Known failure modes

- 402 Payment Required — must pay $0.01 USDC on Base to 0x973a31858f4d2125f48c880542da11a2796f12d6 and retry
- Invalid wallet address format returns an error
- Wallet with no token approvals returns empty list
- Network or RPC issues may cause timeouts
- Unsupported chain may return no results

## How this service works

Lists a wallet's active token approvals — which contracts can spend its tokens, the allowance, USD value at risk and a risk factor (revoke.cash-style). Essential wallet-security check for agents and users. Paid via x402: $0.01 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

Returns a list of active token approvals for the given wallet, including: the spender contract address, token name and address, current allowance amount, estimated USD value at risk, and a risk factor score (similar to revoke.cash). Helps identify dangerous or forgotten approvals that should be revoked.

## 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"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Wallet address"
      }
     }
    }
   },
   "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/x402-bazaar-token-approval-risk-scanner-63607d59/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
