# HostDeFi Token Risk Grade API

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

Returns a letter-grade risk assessment and risk score for a token by contract address across Solana and EVM chains

## Facts

- Endpoint: GET https://hostdefi.com/api/v1/x402/token-risk/%7Bchain%7D/%7Baddress%7D
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hostdefi-token-risk-grade-api-44cdbe0d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9vRVQI3LuNLlt80krqY1n

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-grade-api-44cdbe0d
```

Example prompt: Can you check the risk grade for the BONK token on Solana — the mint address is DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 — and tell me if it's safe to swap?

## When to prefer this

Choose this endpoint when you need a quick, structured risk grade for a specific token before executing a swap or making an investment decision across Solana or EVM chains. It is particularly useful for agents that need a single authoritative risk signal (letter grade + score) rather than raw on-chain data, and works across 8 chains including Solana, Ethereum, Base, Arbitrum, Optimism, BSC, Polygon, and Avalanche. Prefer this over manual on-chain analysis when you need a fast, actionable risk verdict at low cost ($0.01 per call).

## Known failure modes

- Invalid or unrecognized chain ID returns an error
- Malformed contract address (wrong format for chain type) returns validation error
- Token contract not found on specified chain returns not-found error
- Payment failure (x402 micropayment not processed) returns 402 Payment Required
- Rate limiting or network issues may return 5xx errors

## 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: an overall letter risk grade (e.g. A, B, C), a numeric risk score (0-100), a human-readable verdict string, the token's chain and symbol, and a signals object with specific risk indicators that contributed to the grade.

## 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)"
      }
     }
    }
   }
  },
  "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,
   "verdict": "…"
  },
  "token": {
   "chain": "solana",
   "symbol": "BONK"
  },
  "signals": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hostdefi-token-risk-grade-api-44cdbe0d/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)
