slotSubscribe

Subscribe to notifications when the validator processes a new slot.

{
"jsonrpc": "2.0",
"id": 1,
"method": "slotSubscribe"
}

params

None

result

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?

Managed by

© 2026 Solana Foundation.
All rights reserved.
Get connected