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
- Subscribe to real-time slot updates
- Monitor new slots as they are processed
- Receive continuous slot information for tracking
Constraints
- Requires an active WebSocket connection
- Unsubscription needed to avoid unnecessary data flow
- Network instability may affect real-time updates
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"}
Response
200
{
"jsonrpc": "2.0",
"id": 1,
"result": "subscription_id"
}
Request params
idinteger
jsonrpcstring
methodstring
Response
200
The result object returned by the subscription, including the subscription ID and real-time slot information updatesResponse 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.