# HostDeFi Token Risk Scanner

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

Scores and grades a Solana or EVM token's safety risk using on-chain signals, returning a letter grade and numeric risk score

## Facts

- Endpoint: POST https://rpc.hostdefi.com/api/v1/x402/token-risk?utm_source=zero.xyz
- Price: $0.02/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-scanner-d2efa655
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6zI3LSA10x0XoFBZoucY5

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-scanner-d2efa655 -d '<json body>'
```

Example prompt: Can you check the safety risk score for the Solana token at contract address DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263? I want to know if it's safe to buy before I swap into it.

## When to prefer this

Choose this endpoint when an agent needs a fast, structured safety assessment of a specific Solana or EVM token before executing a swap or investment decision. It is especially useful for filtering out scam tokens, rug pulls, and low-liquidity traps at $0.02 per call — much cheaper than building bespoke on-chain analysis. Prefer it over general blockchain explorers when you need a single normalized risk grade rather than raw transaction data.

## Known failure modes

- Unknown or unresolvable token address returns an error or empty result
- Ambiguous ticker/name with multiple liquidity matches may resolve to an unexpected token
- Newly launched tokens with insufficient on-chain history may return incomplete signals
- Network or RPC errors from the Solana chain may delay or fail the response
- Payment failure (insufficient USDC) results in a 402 response before the scan runs

## 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

Returns a JSON object with a risk grade (letter, e.g. 'B'), a numeric risk score (0-100), a human-readable verdict string, the token's chain and symbol, and a signals object containing the underlying on-chain risk indicators used to compute 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-scanner-d2efa655/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)
