Skip to content
Documentation menu

Solana RPC

Send JSON-RPC to Solana through your key. Native responses, per-call pricing, no batch arrays.

Endpoint

bash
curl https://api.uselocal.sh/v1/rpc/solana \
  -H "Authorization: Bearer $LOCAL_API_KEY" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getSlot","params":[]}'

Requires the rpc:execute scope. The response is the native JSON-RPC response from the upstream node; our cost headers (X-Local-Charged-Usd, X-Local-Billing-State) are added.

Rules

  • Methods are allow-listed; unknown or disallowed methods return 422 unsupported_rpc_method.
  • Batch arrays are rejected with 422 unsupported_batch. Send one request per call.
  • Idempotency-Key is optional for RPC; sending one makes retries safe.

Which network?

Each RPC route in the catalog states its network (e.g. Solana mainnet). Pick the route that matches your application; the funding network is unrelated to the RPC network you query.

Suppliers

RPC routes are provided through infrastructure suppliers listed in the catalog with their availability. Supplier-specific extensions appear as separate tools with their own schemas; standard methods never silently fall back to unrelated methods.