# HostDeFi Multi-Chain JSON-RPC Gateway

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

Executes JSON-RPC calls against Solana or EVM-compatible blockchain nodes across multiple chains via a pay-per-call x402 endpoint

## Facts

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

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-gateway-98a962f0 -d '<json body>'
```

Example prompt: Can you call eth_blockNumber on the Ethereum chain using the HostDeFi RPC gateway and tell me the latest block?

## When to prefer this

Choose this endpoint when you need pay-per-call, no-KYC access to JSON-RPC blockchain node queries across Solana or multiple EVM chains without committing to a subscription RPC provider. Particularly useful for agents that need occasional multi-chain queries at a flat $0.002 per call cost, or when you want to combine RPC access with HostDeFi's DeFi and token safety context.

## Known failure modes

- Method not on allowlist returns a JSON-RPC error with method not allowed
- Invalid chain identifier in URL path returns 404 or routing error
- Malformed JSON-RPC body returns parse error response
- Payment failure (x402 unpaid) returns HTTP 402 before RPC is executed
- Network congestion or node downtime may cause timeouts
- Invalid params for the given method return JSON-RPC invalid params error

## 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 an id field matching the request, a jsonrpc field set to '2.0', and a result field with the chain-specific data (e.g. hex-encoded block number, slot integer, balance in wei, transaction receipt object, or contract return value). 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-gateway-98a962f0/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)
