# Agent Café Wallet Risk Scorer (x402 · Base)

> Agent Café Wallet Risk Scorer (x402 · Base) is a paid API for AI agents from api.402.coffee, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Scores a wallet's payment risk on Base and certifies that an AI agent can pay safely using USDC over the x402 protocol

## Facts

- Endpoint: POST https://api.402.coffee/score
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-caf-wallet-risk-scorer-x402-base-6bc1cac6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gVc2XXlvXod49N7Ile3ct

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 agent-caf-wallet-risk-scorer-x402-base-6bc1cac6 -d '<json body>'
```

Example prompt: Can you score the payment risk for wallet 0xABCD...1234 on Base before I let it pay for my service — I need to know if it's safe to accept USDC from this agent wallet over x402?

## When to prefer this

Choose this endpoint when you need to assess payment risk for AI agent wallets specifically on the Base network using the x402 protocol with USDC — particularly when you need an on-chain verifiable receipt and trust certification rather than a generic crypto address lookup or off-chain credit scoring service.

## Known failure modes

- Wallet address not found on Base — returns error with null score
- Insufficient USDC balance or failed x402 payment — paid: false with no receipt issued
- Invalid or malformed wallet address — validation error before scoring
- Network congestion on Base causing delayed transaction confirmation
- High-risk wallet flagged — score returned but certification denied

## How this service works

Agent risk score — deterministic 0–100 trust summary of a wallet's observed x402 payment behaviour (conformance certs + public chain facts). For sellers, wallets & marketplaces. Body: {"wallet":"0x…"}.

## Output

Returns a JSON object with: transaction hash (tx), paid boolean confirming USDC settlement, order label, amount paid, network (Base), currency (USDC), a unique receipt number (AC-XXXXXX format), and a guestbook URL for on-chain verification.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "wallet"
     ],
     "properties": {
      "wallet": {
       "type": "string",
       "description": "0x wallet address to score"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tx": "0x…",
  "paid": true,
  "order": "espresso",
  "amount": "0.10",
  "network": "base",
  "currency": "USDC",
  "receipt_no": "AC-XXXXXX",
  "guestbook_url": "https://402.coffee/wall"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-caf-wallet-risk-scorer-x402-base-6bc1cac6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.402.coffee](https://www.zero.xyz/host/api.402.coffee/llms.txt)
