# x402 Bazaar Token Risk Scorer

> x402 Bazaar Token Risk Scorer 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).

Analyzes a Base-chain ERC-20 token contract address and returns a live risk score plus safety flags (ERC-20 conformance, ownership renounce, upgradeable proxy) for pre-trade vetting.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/token-risk
- 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-risk-scorer-4e6ad2f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kQ78x7CPZqHrhj753feIo

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-risk-scorer-4e6ad2f5 -d '<json body>'
```

Example prompt: Before I buy, can you run a risk check on this Base token contract — 0xabc123...def — and tell me if it's ERC-20 compliant, whether ownership has been renounced, and if it uses an upgradeable proxy?

## When to prefer this

Use this endpoint when an AI trading agent or bot needs to programmatically vet an ERC-20 token on Base before executing a buy, specifically when you need structured risk signals (conformance, ownership, proxy) rather than a narrative analysis. Prefer over generic security APIs when operating on Base chain and when x402 micropayment flow is already supported in your agent stack.

## Known failure modes

- 402 Payment Required — must pay $0.02 USDC on Base (eip155:8453) to the specified address and retry
- Invalid or non-existent contract address — returns error or empty flags
- Non-Base chain contract address provided — may return incorrect or no results
- Contract not yet indexed — live computation may time out or return partial data
- Malformed request body — missing required contract address field

## How this service works

Pass a token contract address and get a risk score + flags (ERC-20 conformance, ownership renounce, upgradeable proxy) computed live from Base. Built for trading bots and agents that vet tokens before buying. Paid via x402: $0.02 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

Returns a numeric risk score and a set of boolean safety flags: ERC-20 conformance, ownership renounce status, and whether the contract is an upgradeable proxy, all computed live from Base chain data.

## 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": "Token contract 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-risk-scorer-4e6ad2f5/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)
