# Base Wallet Counterparty Risk Analyzer

> Base Wallet Counterparty Risk Analyzer is a paid API for AI agents from base-agent-preflight.bytoken2023.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Analyzes a Base blockchain wallet or contract address for risk level, flags, and counterparty safety before transacting

## Facts

- Endpoint: GET https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/base/wallet-counterparty
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-wallet-counterparty-risk-analyzer-54337ec7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s11GFHkKBXefZ8xkXzVdh

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 base-wallet-counterparty-risk-analyzer-54337ec7
```

Example prompt: Before I send any funds, can you check if this Base wallet address 0x4a2b8c1d3e5f6789abcdef1234567890abcdef12 is safe — give me its risk score and any flags?

## When to prefer this

Use this endpoint when an AI agent needs to screen a Base L2 wallet or contract address for counterparty risk before executing a payment, token transfer, or smart contract interaction. Prefer this over generic blockchain explorers when you need a structured, machine-readable risk assessment with flags and scoring rather than raw transaction history.

## Known failure modes

- Invalid address format (not 0x + 40 hex chars) returns validation error
- Address not found on Base network returns empty or unknown risk data
- Rate limit or payment failure returns 402/429 error
- Network connectivity issues to Base RPC may cause timeout

## How this service works

Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.

## Output

Returns a JSON object with network identifier (eip155:8453 for Base), product name, risk_level (e.g. 'low'), risk_score (0-1 numeric), flags array listing any concerns, plus activity, identity, assessment, and provenance objects for deeper analysis.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "Base wallet or contract to analyze."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "network": {
       "type": "string"
      },
      "product": {
       "type": "string"
      },
      "activity": {
       "type": "object"
      },
      "identity": {
       "type": "object"
      },
      "assessment": {
       "type": "object"
      },
      "provenance": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "eip155:8453",
  "product": "base-wallet-counterparty",
  "assessment": {
   "flags": [],
   "risk_level": "low",
   "risk_score": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-wallet-counterparty-risk-analyzer-54337ec7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base-agent-preflight.bytoken2023.workers.dev](https://www.zero.xyz/host/base-agent-preflight.bytoken2023.workers.dev/llms.txt)
