Skip to main content
The TSN RPC gateway forwards standard Solana JSON-RPC to ranked upstream providers and exposes health, provider, and selection endpoints.

HTTP endpoints

Parameters

For POST / and POST /rpc, send a standard JSON-RPC 2.0 object or batch array. The gateway does not define a new method namespace; method names such as getHealth, getLatestBlockhash, and getAccountInfo are forwarded to an upstream Solana provider.
string
required
Must be "2.0".
string | number | null
required
Client correlation identifier.
string
required
A supported upstream Solana JSON-RPC method.
array
Method-specific Solana RPC parameters.
unknown
The upstream Solana RPC result when the call succeeds.
object
JSON-RPC error when the request is malformed or every upstream fails.
Errors include HTTP 400 with JSON-RPC -32700 for invalid JSON, HTTP 400 with -32600 for invalid request shape, and HTTP 502 when all upstream providers fail. Browser origins are checked by the Node server wrapper when an Origin header is present. Source: gateway.mjs:452-579, server.mjs:50-98, README.md:24-58