# Base Capital x402 Onchain Risk API

> Base Capital x402 Onchain Risk API is a paid API for AI agents from base-capital.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-11).

Returns a 0-100 risk score for any Base network token, priced at $0.01 USDC per call via x402 micropayment protocol.

## Facts

- Endpoint: GET https://base-capital.vercel.app/v1/risk/%7Btoken%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-capital-x402-onchain-risk-api-4e7ed8ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JpDh3B65Bha33ROLu_frp

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-capital-x402-onchain-risk-api-4e7ed8ea
```

Example prompt: Before I trade, can you check the onchain risk score for the Base token at address 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed? I want to know if it's safe to buy.

## When to prefer this

Use this endpoint when an AI trading agent needs a fast, pay-per-use risk signal for any Base network token before executing a trade. Prefer this over manual contract audits or general blockchain explorers when you need a single normalized 0-100 score optimized for programmatic decision-making by autonomous agents on Base.

## Known failure modes

- Invalid or non-existent token address returns an error or null score
- Token not deployed on Base network results in a failed lookup
- Payment failure via x402 protocol blocks the response
- Rate limiting or service unavailability on the Vercel deployment
- Malformed token address format causes a 4xx error

## How this service works

x402 onchain risk-intelligence API for AI trading agents on Base. Pay-per-call 0-100 risk score for any Base token.

## Output

A numeric risk score between 0 and 100 representing the onchain risk level of the specified Base token — higher scores indicate greater risk. The response is returned after a $0.01 USDC micropayment via x402.

## 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": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string"
      }
     }
    }
   },
   "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/base-capital-x402-onchain-risk-api-4e7ed8ea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base-capital.vercel.app](https://www.zero.xyz/host/base-capital.vercel.app/llms.txt)
