RPC overview

The Solana JSON-RPC surface over HTTP and WebSocket, performance-tuned and co-located.

rpc edge exposes the full Solana JSON-RPC surface over HTTP, plus WebSocket subscriptions, on performance-tuned nodes co-located with the cluster. It is the read-and-write workhorse of your stack.

HTTP vs WebSocket

TransportUse for
HTTP JSON-RPCreads, writes, history, one-shot lookups
WebSocketaccount, log, and signature subscriptions

Common methods

  • getAccountInfo - read a single account.
  • getMultipleAccounts - read several accounts in one call.
  • getProgramAccounts - scan a program's accounts (heavy - always filter).
  • sendTransaction - submit a signed transaction.
  • getLatestBlockhash - fetch a fresh blockhash for signing.

When to stream instead

Polling adds latency. For live state at scale, prefer Yellowstone gRPC over fanning out WebSocket subscriptions, and decoded shreds for first-seen, pre-confirmation data.