# HostDeFi Multi-Chain JSON-RPC Endpoint

> HostDeFi Multi-Chain JSON-RPC Endpoint is a paid API for AI agents from rpc.hostdefi.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Provides pay-per-call JSON-RPC access to multiple blockchain networks (EVM chains and Solana) via a unified x402-payment-gated RPC gateway.

## Facts

- Endpoint: POST https://rpc.hostdefi.com/api/v1/x402/rpc/%7Bchain%7D?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hostdefi-multi-chain-json-rpc-endpoint-408a8b1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_irdXyte5KyaWoY0yR65vI

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-multi-chain-json-rpc-endpoint-408a8b1a -d '<json body>'
```

Example prompt: Call eth_blockNumber on Ethereum mainnet using the HostDeFi RPC gateway and tell me the current block height.

## When to prefer this

Choose this endpoint when you need pay-per-call, no-subscription RPC access to EVM chains or Solana without managing API keys or committing to a monthly plan. It is well-suited for agents that need sporadic blockchain reads across multiple chains via a single unified gateway with x402 micropayment billing.

## Known failure modes

- Unsupported method name rejected by allowlist upstream — returns JSON-RPC error
- Invalid chain path parameter returns 404 or routing error
- Payment not included or insufficient USDC triggers x402 payment-required response
- Malformed params array causes JSON-RPC parse error
- Network congestion on target chain causes delayed or timeout response

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

A standard JSON-RPC 2.0 response object containing the 'id' matching the request, 'jsonrpc': '2.0', and a 'result' field with the blockchain data requested (e.g. a hex block number, balance, slot integer, transaction object, or receipt). Errors return a standard JSON-RPC error object.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "integer"
  },
  "method": {
   "type": "string",
   "description": "JSON-RPC method name (eth_blockNumber, getSlot, …) — allowlist enforced upstream"
  },
  "params": {
   "type": "array"
  },
  "jsonrpc": {
   "type": "string",
   "description": "'2.0'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": 1,
  "result": "0x…",
  "jsonrpc": "2.0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hostdefi-multi-chain-json-rpc-endpoint-408a8b1a/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)
