Solana RPC WebSocket Subscriptions API

Real-time WebSocket subscription API for the Solana blockchain. Provides event-driven notifications for accounts (accountSubscribe, programSubscribe), transactions (logsSubscribe, signatureSubscribe), blocks (blockSubscribe), and cluster state changes (rootSubscribe, slotSubscribe, slotsUpdatesSubscribe, voteSubscribe). Each subscription has a corresponding unsubscribe method. WebSocket connections are available at ws://localhost:8900 for local development and wss://api.mainnet.solana.com for production.

API entry from apis.yml

apis.yml Raw ↑
aid: solana:solana-rpc-websocket-api
name: Solana RPC WebSocket Subscriptions API
tags:
- WebSocket
- Subscriptions
- Real-time
- Events
- Blockchain
humanURL: https://solana.com/docs/rpc/websocket
baseURL: wss://api.mainnet.solana.com
properties:
- url: https://solana.com/docs/rpc/websocket
  type: Documentation
- url: https://solana.com/docs/rpc/websocket
  type: APIReference
description: Real-time WebSocket subscription API for the Solana blockchain. Provides event-driven notifications
  for accounts (accountSubscribe, programSubscribe), transactions (logsSubscribe, signatureSubscribe),
  blocks (blockSubscribe), and cluster state changes (rootSubscribe, slotSubscribe, slotsUpdatesSubscribe,
  voteSubscribe). Each subscription has a corresponding unsubscribe method. WebSocket connections are
  available at ws://localhost:8900 for local development and wss://api.mainnet.solana.com for production.