# x402 Bazaar AI Wallet Security Audit

> x402 Bazaar AI Wallet Security Audit 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).

Fetches a wallet's active ERC-20 token approvals and uses Claude to generate a security audit with risk level, USD at risk, and specific revoke recommendations.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/ai-wallet-security
- 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-ai-wallet-security-audit-9e6d710d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WoB-2uJMMagDOeqsc1VBQ

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-ai-wallet-security-audit-9e6d710d -d '<json body>'
```

Example prompt: Run a security audit on my wallet 0xAbC123...def456 — I want to know the overall risk level, how much USD is at risk from open token approvals, and which specific spender contracts I should revoke and why.

## When to prefer this

Use this endpoint when an agent or user needs a quick, human-readable AI-written security assessment of a wallet's token approval exposure — especially before trusting or interacting with an address. Prefer this over raw on-chain data tools when you need actionable revoke recommendations rather than raw approval lists.

## Known failure modes

- 402 Payment Required — must pay $0.04 USDC on Base to the specified address and retry
- Invalid or malformed wallet address returns an error
- Wallet with no token approvals returns empty audit with low risk
- Network timeout if approval fetching is slow for wallets with many interactions
- Unsupported chain — endpoint may only support certain EVM-compatible chains

## How this service works

Pulls a wallet's active token approvals and Claude writes a security audit: overall risk level, USD at risk, and concrete revoke recommendations (which token/spender and why). The wallet-safety check agents and users run before trusting an address. Paid via x402: $0.04 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

An AI-generated security audit including: overall risk classification (e.g. low/medium/high), total USD value at risk from active token approvals, and a prioritized list of revoke recommendations specifying which token and which spender contract to revoke and the reason why.

## 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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-ai-wallet-security-audit-9e6d710d/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)
