# HostDeFi Token Risk Grader

> HostDeFi Token Risk Grader is a paid API for AI agents from hostdefi.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns a letter-grade risk assessment and numeric risk score for a Solana or EVM token, given a contract address or ticker symbol.

## Facts

- Endpoint: POST https://hostdefi.com/api/v1/x402/token-risk
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hostdefi-token-risk-grader-b7e932ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q3wWOQMrZcOo58ALmxgza

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-grader-b7e932ee -d '<json body>'
```

Example prompt: Can you check the risk grade for the BONK token on Solana — I want to know if it's safe before I swap into it?

## When to prefer this

Choose this endpoint when you need a quick, structured letter-grade risk assessment for a specific token before trading or recommending it, especially on Solana or supported EVM chains. It is useful when you want a single composite score rather than raw on-chain data, and when you need to screen tokens without requiring KYC or accounts. Prefer it over general blockchain explorers when you want an opinionated risk verdict rather than raw metrics.

## Known failure modes

- Token not found for given ticker or address — likely returns ok:false with an error message
- Ambiguous ticker matches multiple tokens — resolves to top-liquidity match, which may not be the intended token
- Unsupported chain or contract format — may return an error or empty signals
- Payment failure via x402 — call rejected before reaching the scoring engine
- Stale risk data if token liquidity or on-chain state changed recently

## How this service works

HostDeFi is a non-custodial Solana DEX. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, no accounts, no custody.

## Output

A JSON object containing a letter risk grade (e.g. A–F), a numeric risk score (0–100), a plain-English verdict, the resolved token metadata (chain, symbol), and a signals object with underlying risk factors that contributed to the grade.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Token contract address, or an exact name/ticker (resolves to the top-liquidity match)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "meta": {
   "plan": "x402"
  },
  "risk": {
   "grade": "B",
   "score": 78,
   "verdict": "…"
  },
  "token": {
   "chain": "solana",
   "symbol": "BONK"
  },
  "signals": {}
 }
}
```

## More

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