# x402 Bazaar Rug Score

> x402 Bazaar Rug Score 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-15).

Returns a deterministic 0-100 rug-pull probability score for a crypto token, combining security flags, holder concentration, LP lock status, and liquidity depth with the exact signals that drove the score.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/rug-score
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-rug-score-3d645c11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QBxRNgp75OtGR5wjHWbjk

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-rug-score-3d645c11 -d '<json body>'
```

Example prompt: Give me a rug-pull probability score for this token — I need the 0-100 risk score plus the exact signals driving it so I can decide whether to trade it.

## When to prefer this

Use this endpoint when an AI trading agent needs a fast, deterministic numeric gate to screen tokens for rug-pull risk before executing a trade. Ideal when you need a single actionable score plus the breakdown of signals (security flags, holder concentration, LP lock, liquidity) rather than raw on-chain data you'd have to interpret yourself.

## Known failure modes

- 402 Payment Required — endpoint returns payment requirements in USDC on Base; agent must pay $0.01 USDC to 0x973a31858f4d2125f48c880542da11a2796f12d6 and retry
- Invalid or unsupported token address — returns error if token cannot be found on-chain
- Unsupported network — token on a chain not indexed by the service
- Malformed request body — missing required token address field
- Insufficient liquidity data — score may be partial if on-chain data is sparse

## How this service works

Deterministic 0-100 rug-probability score combining security flags, holder concentration, LP lock and liquidity depth — with the exact signals that drove it. A fast numeric gate for trading agents. Higher = riskier. Paid via x402: $0.01 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

A numeric score from 0-100 representing rug-pull probability (higher = riskier), along with the specific signals that contributed to it: security flags, holder concentration data, LP lock status, and liquidity depth metrics.

## 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-rug-score-3d645c11/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)
