WebSocket Methods
rootSubscribe Solana RPC Method
Subscribe to receive notification anytime a new root is set by the validator.
Endpoints
Websockets are available on mainnet and devnet with the following URLs:
- Mainnet
wss://mainnet.helius-rpc.com/?api-key=<API_KEY>
- Devnet
wss://devnet.helius-rpc.com/?api-key=<API_KEY>
Websockets have a 10-minute inactivity timer; implementing health checks and sending pings every minute is heavily recommended to keep the websocket connection alive.
Authorizations
Body
Response
Subscription id (needed to unsubscribe)
Notification Format
The result is the latest root slot number.