rootSubscribe

Subscribe to notifications when the validator sets a new root slot.

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

params

None

result

Response
{
"jsonrpc": "2.0",
"result": 0,
"id": 1
}
integer

Subscription id. Pass this to rootUnsubscribe.

Notification format

Notifications are delivered as rootNotification.

{
"jsonrpc": "2.0",
"method": "rootNotification",
"params": {
"result": 324,
"subscription": 3
}
}
jsonrpc
string

Always "2.0".

method
string

Always "rootNotification".

params
object

Notification wrapper with the latest root and the subscription id.

Is this page helpful?

Managed by

© 2026 Solana Foundation.
All rights reserved.
Get connected