slotSubscribe - Solana

slotSubscribe. Allows developers to subscribe to real-time updates for specific slot numbers

slotSubscribe - solana [Value: 10CU]
Allows to subscribe to real-time updates for specific slot numbers
Use cases

Use cases

  • Subscribe to real-time slot updates
  • Monitor new slots as they are processed
  • Receive continuous slot information for tracking
Constraints

Constraints

  • Requires an active WebSocket connection
  • Unsubscription needed to avoid unnecessary data flow
  • Network instability may affect real-time updates
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
wscat -c wss://solana.drpc.org \
# wait for connection
{"id":1,"jsonrpc":"2.0","method":"slotSubscribe"}
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "subscription_id"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.

Response

200
The result object returned by the subscription, including the subscription ID and real-time slot information updates

Response params

object
idinteger
jsonrpcstring
resultobject
object
subscriptioninteger
The subscription ID that uniquely identifies the slot subscription.
resultobject
An object containing real-time updates about slots as they are processed by the node.
object
parentinteger
The parent slot of the current slot being processed.
rootinteger
The root slot, which is the highest confirmed slot known by the node.
slotinteger
The current slot being processed by the node.