Source
slots_updates_subscribeThis subscription is unstable. The format may change in the future and may not
always be supported.
Parameters
NoneResult
result
Subscription id. Pass this to
slotsUpdatesUnsubscribe.
Notification format
Notifications are delivered asslotsUpdatesNotification. The payload is the
tagged slot-update object serialized as JSON with a type field.
type value | Fields present |
|---|---|
firstShredReceived | slot, timestamp |
completed | slot, timestamp |
createdBank | slot, parent, timestamp |
frozen | slot, timestamp, stats |
dead | slot, timestamp, err |
optimisticConfirmation | slot, timestamp |
root | slot, 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
Always
"2.0".method
Always
"slotsUpdatesNotification".params
Notification wrapper with the serialized slot-update payload and the
subscription id.