Skip to main content

rootSubscribe RPC Method

(Subscription Websocket) Subscribe to receive a notification each time the validator sets a new root, which is its latest finalized slot.

Updated on
Oct 21, 2026
As of May 1, 2026, this WebSocket method is billed based on metered data usage: 0.1 MB = 15 API credits. Learn more about WebSocket billing.

Parameters

This method does not accept any parameters

Returns

result
integer

The result will be an RpcResponse JSON object with id equal to the subscription id (needed to unsubscribe)

Notification Format:

The notification format is the same as seen in the getAccountInfo RPC HTTP method

slot

The latest slot number

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": 0,
4
"id": 1
5
}
1
{
2
"jsonrpc": "2.0",
3
"result": 0,
4
"id": 1
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free