# HostDeFi Token Risk Report

> HostDeFi Token Risk Report is a paid API for AI agents from rpc.hostdefi.com, paid per call via x402, $0.35/call, status unknown (last checked 2026-10-02).

Returns a letter-grade risk assessment and safety signals for a given token contract on Solana or supported EVM chains

## Facts

- Endpoint: GET https://rpc.hostdefi.com/api/v1/x402/token-risk/report/%7Bchain%7D/%7Baddress%7D?utm_source=zero.xyz
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hostdefi-token-risk-report-fa488d9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LSbqX115k1hWALQZzB2Vi

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 hostdefi-token-risk-report-fa488d9d
```

Example prompt: Can you pull a token risk report for the Solana contract DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 and tell me its safety grade and whether it's matched on the rug ledger?

## When to prefer this

Choose this endpoint when you need a quick, multi-signal token safety grade for Solana or EVM tokens (8 chains) without requiring KYC or complex setup. It is especially useful for pre-trade due diligence in agent workflows, surfacing rug ledger matches, and getting a scored letter grade that is easy to act on programmatically. Prefer it over manual on-chain analysis when you need a consolidated risk verdict with historical context in a single API call.

## Known failure modes

- Invalid or malformed token address returns error or empty result
- Unsupported chain identifier returns a validation error
- Token contract not indexed yet may return empty signals or no history
- Rate limiting or payment failure (x402) if USDC payment is not completed
- historyLimit out of range (below 1 or above 365) returns schema validation error

## How this service works

HostDeFi is a Solana DEX with a free token safety scanner. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, 1% flat fee.

## Output

A JSON object containing: ok status, plan metadata, a letter risk grade (e.g. A–F) and numeric score (0–100), token chain and symbol, historical risk rows with configurable day count, granular safety signals, a natural-language summary, a rug ledger match flag, and radar mention events.

## 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",
     "required": [
      "chain",
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Chain id: solana, ethereum, bsc, base, arbitrum, optimism, polygon, avalanche"
      },
      "address": {
       "type": "string",
       "description": "Token contract address (base58 mint on Solana, 0x… on EVM)"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "historyLimit": {
       "type": "integer",
       "maximum": 365,
       "minimum": 1,
       "description": "History rows included (most recent N days, default 90)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "meta": {
   "plan": "x402"
  },
  "risk": {
   "grade": "B",
   "score": 78
  },
  "token": {
   "chain": "solana",
   "symbol": "BONK"
  },
  "history": {
   "rows": [],
   "count": 1
  },
  "signals": {},
  "summary": "…",
  "rugLedger": {
   "matched": false
  },
  "radarMentions": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hostdefi-token-risk-report-fa488d9d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rpc.hostdefi.com](https://www.zero.xyz/host/rpc.hostdefi.com/llms.txt)
