Skip to content
Subscribe to a stream of tagged slot lifecycle updates emitted by the validator.
This subscription is unstable. The format may change in the future and may not always be supported.

​Parameters

None

​Result

​result
integer
Subscription id. Pass this to slotsUpdatesUnsubscribe.

​Notification format

Notifications are delivered as slotsUpdatesNotification. The payload is the tagged slot-update object serialized as JSON with a type field.
type valueFields present
firstShredReceivedslot, timestamp
completedslot, timestamp
createdBankslot, parent, timestamp
frozenslot, timestamp, stats
deadslot, timestamp, err
optimisticConfirmationslot, timestamp
rootslot, timestamp
timestamp is emitted as a Unix timestamp in milliseconds. The example below shows a frozen notification captured from a local validator. Other variants use the field matrix above.
​jsonrpc
string
Always "2.0".
​method
string
Always "slotsUpdatesNotification".
​params
object
Notification wrapper with the serialized slot-update payload and the subscription id.