Subscribe to notifications when the validator processes a new slot.
Source
{"jsonrpc": "2.0","id": 1,"method": "slotSubscribe"}
params
Noneresult
Response
{"jsonrpc": "2.0","result": 0,"id": 1}
integer
Subscription id. Pass this to slotUnsubscribe.
Notification format
Notifications are delivered as slotNotification.
{"jsonrpc": "2.0","method": "slotNotification","params": {"result": {"slot": 373,"parent": 372,"root": 341},"subscription": 5}}
jsonrpc
string
Always "2.0".
method
string
Always "slotNotification".
params
object
Notification wrapper with the slot payload and the subscription id.
Is this page helpful?