# HostDeFi x402 Provider Risk Grading

> HostDeFi x402 Provider Risk Grading 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 and numeric risk score for an x402 payment provider or seller resource URL

## Facts

- Endpoint: GET https://hostdefi.com/api/v1/x402/provider-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-x402-provider-risk-grading-533dff40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KchUYPxZKuhSZMWDDjm7H

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-grading-533dff40
```

Example prompt: Can you check the risk grade for the x402 provider at https://example.com/api/resource and tell me whether it's safe to transact with?

## When to prefer this

Use this endpoint when an agent needs to programmatically assess the safety or legitimacy of an x402 micropayment provider or seller resource before transacting, particularly in automated workflows where vetting unknown payment endpoints is critical. Prefer this over manual review when integrating new x402 APIs at scale or when building trust-gated agent pipelines.

## Known failure modes

- Missing or invalid 'resource' query parameter returns an error response
- Unrecognized or unreachable resource URL may return a low grade or null score
- Non-x402 URLs may yield degraded or unavailable grading results
- Rate limiting or payment failure (x402 cost not covered) blocks the response

## 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 with an 'ok' boolean, a 'kind' field (e.g. 'provider'), a letter grade (A–F), a numeric score (0–100), and an array of reasons explaining any risk flags found for the queried x402 resource.

## 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-grading-533dff40/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)
