Solana WebSocket RPC
Stream Solana data in real time over a WebSocket connection instead of polling. Every SwiftNodes plan includes a Solana WebSocket endpoint alongside HTTP, with flat-rate pricing and no KYC.
Endpoint
wss://rpc.swiftnodes.io/ws/solana?key=YOUR_API_KEYThe HTTP endpoint for Solana is https://rpc.swiftnodes.io/rpc/solana?key=YOUR_API_KEY. One API key works for both, and across all 75+ supported chains.
Subscribe to Solana in real time
import { Connection } from "@solana/web3.js";
const conn = new Connection("https://rpc.swiftnodes.io/rpc/solana?key=YOUR_API_KEY", {
wsEndpoint: "wss://rpc.swiftnodes.io/ws/solana?key=YOUR_API_KEY",
});
// Subscribe to new slots on Solana
const subId = conn.onSlotChange((slot) => console.log("slot", slot.slot));What you can subscribe to
- Slot and root updates: track chain progress in real time
- Account changes: get notified when an account's data updates
- Program and signature subscriptions for live app state
Free keys get one WebSocket connection with new-block subscriptions only. Every other subscription listed here needs a paid plan, which also raises the connection limit.
Solana is a Layer 1 (Proof-of-History + Tower BFT), with ~~400 milliseconds block times and ~12.8 seconds (32 confirmations for finality) finality. That cadence sets how frequently new-block subscriptions fire.
Frequently asked questions
Does SwiftNodes support Solana WebSocket?
Yes. Every Solana plan includes a WebSocket (wss://) endpoint alongside HTTP, with no separate add-on. Connect to wss://rpc.swiftnodes.io/ws/solana?key=<key> and open subscriptions immediately.
What is the Solana WebSocket URL?
wss://rpc.swiftnodes.io/ws/solana?key=YOUR_API_KEY — replace YOUR_API_KEY with the key from your dashboard. The matching HTTP endpoint is https://rpc.swiftnodes.io/rpc/solana?key=YOUR_API_KEY.
Is there a message rate limit on the WebSocket?
Yes — WebSocket throughput scales with your plan (1 msg/s on Free up to 250 msg/s on Pro), with concurrent-connection limits per plan. The free plan allows one connection with new-block subscriptions only; log and pending-transaction subscriptions need a paid plan. Within those limits, subscriptions stream in real time.
See the full Solana RPC page for chain details, or the WebSocket docs for the complete method list.
Get a Solana endpoint free
HTTP + WebSocket, flat-rate, pay with crypto or card, no KYC. Live in 30 seconds.
Get your API key