Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.helius.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

Billing and Rate Limits

Opening a new WebSocket connection costs 1 credit. All LaserStream WebSocket streaming data is metered at 2 credits per 0.1 MB.
LaserStream WebSocket is, on average, 1.5x – 2x faster than the standard Agave RPC-based WebSocket implementation. It serves both the standard Solana subscription methods and Helius extensions (transactionSubscribe, enhanced accountSubscribe) from a single endpoint backed by the LaserStream streaming infrastructure.

Disconnects and Retries

WebSockets have a 10-minute inactivity timer that disconnects idle connections. To prevent disconnections:
  1. Implement health checks: Send pings every minute to keep connections alive
  2. Add reconnection logic: Automatically reconnect when disconnections occur
  3. Use proper connection management: Follow the patterns shown in our WebSockets documentation
Implement reconnection and ping logic as shown in our documentation, then add your application logic on top of this foundation.

Using WebSockets

LaserStream WebSocket uses one unified endpoint per network: wss://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY and wss://devnet.helius-rpc.com/?api-key=YOUR_API_KEY. The same endpoint serves both the standard Solana subscription methods and the Helius extensions (transactionSubscribe, enhanced accountSubscribe). For the fastest Solana WebSockets, try the new Gatekeeper (Beta) endpoint: wss://beta.helius-rpc.com/?api-key=YOUR_API_KEY.
No, nothing breaks. The product previously documented as “Enhanced WebSockets” (Helius extensions like transactionSubscribe) is now part of LaserStream WebSocket, served from the same wss://mainnet.helius-rpc.com / wss://devnet.helius-rpc.com endpoints alongside the standard Solana methods. Old /enhanced-websockets/* URLs redirect to the new locations under /rpc/websocket/*.
On the Free plan, you can make 5 simultaneous WebSocket connections. On the Developer plan, 150 connections are possible. On Business, you can make 250 connections, and on Professional, up to 1,000 WebSocket connections.
The client needs to keep up with the rate of incoming messages from the WebSocket server.Common causes of your client missing WebSocket updates include: insufficient network bandwidth, too slow client-side processing (e.g. a too slow programming language), or processing logic that blocks the main thread.
Yes, you can create multiple subscriptions to accountSubscribe using the same WebSocket connection.
For Helius’s transactionSubscribe, set transactionDetails: "full" in your subscription options:
const subscriptionRequest = {
  jsonrpc: "2.0",
  id: 1,
  method: "transactionSubscribe",
  params: [
    {
      accountInclude: ["YOUR_ACCOUNT_ADDRESS"],
      failed: false,
      vote: false
    },
    {
      commitment: "confirmed",
      encoding: "jsonParsed",
      transactionDetails: "full",  // Full transaction details
      maxSupportedTransactionVersion: 0
    }
  ]
};
For standard Solana methods, use logsSubscribe or signatureSubscribe depending on your monitoring needs. See our WebSockets guide for detailed examples of each subscription type.

Need More Help?

Contact Support

Get help from our team through Discord, chat, or email support.

Status Page

Check real-time service availability and performance information.