x402 (machine-payable)

One JSON-RPC call against the 82-chain relay, paid per call via x402

Machine-payable JSON-RPC passthrough to HostDeFi's 82-chain public relay (the engine behind rpc.hostdefi.com). POST a single {"jsonrpc":"2.0","id":1,"method":...,"params":[...]} object or a batch of up to 10; the upstream JSON-RPC result is returned verbatim. Chain ids are the published relay ids — ethereum, base, solana, arbitrum, polygon, bsc, ... (full list: https://hostdefi.com/api/rpc/chains). Method allowlists apply upstream; an unknown chain or rejected call is mirrored uncharged. Volume buyers belong on the relay's $25/mo USDC key (POST /api/rpc/keys/claim).

post/v1/x402/rpc/{chain}

Request

  • Base URL: https://hostdefi.com/api
  • URL: https://hostdefi.com/api/v1/x402/rpc/{chain}
  • Auth: none required

Path parameters

chainstring required

Relay chain id (e.g. ethereum, base, solana)

Request body

object required
OR
object[] required

Response

The upstream JSON-RPC result verbatim (result or error object). Settlement receipt in the X-PAYMENT-RESPONSE header.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.