# HostDeFi x402 Provider Risk Grader

> HostDeFi x402 Provider Risk Grader 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-03).

Grades the safety and trustworthiness of an x402 payment provider or resource URL, returning a letter grade, numeric score, and risk reasons.

## Facts

- Endpoint: GET https://rpc.hostdefi.com/api/v1/x402/provider-risk?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hostdefi-x402-provider-risk-grader-e75eb07c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uAbRLthKmv3-xOFN41jWm

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-x402-provider-risk-grader-e75eb07c
```

Example prompt: Before I pay this x402 API, can you check the risk grade for https://rpc.somevendor.com/api/resource and tell me if it's safe to call?

## When to prefer this

Use this endpoint when an AI agent needs to verify the safety and trustworthiness of an x402 pay-per-call resource before authorizing a micropayment. It is the right choice when you want a letter-grade risk signal (A-F) plus a numeric score for x402 providers specifically, particularly in automated agent workflows that need a gate before spending USDC.

## Known failure modes

- Missing or invalid 'resource' query parameter returns an error response
- Unknown or unreachable provider URL may return low score or grade F
- Network timeout if the target resource is offline
- Malformed URL input may cause validation failure
- Provider not indexed in risk database may return limited data

## 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 an 'ok' boolean, 'kind' field (e.g. 'provider'), a letter grade (e.g. 'B'), a numeric score (0-100), and a 'reasons' array listing specific risk factors detected.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "resource": {
       "type": "string",
       "description": "The x402 seller resource URL or origin to grade"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "kind": "provider",
  "grade": "B",
  "score": 82,
  "reasons": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hostdefi-x402-provider-risk-grader-e75eb07c/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)
