rootSubscribe

rootSubscribe WebSocket Method

post
/

Subscribe to receive notification anytime a new root is set by the validator. This method establishes a persistent WebSocket connection that will send real-time notifications whenever the validator updates the root slot. The root represents the most recent slot that has been finalized and committed to the ledger. This subscription is useful for tracking the overall progress of the blockchain and understanding when transactions become irreversibly confirmed.

Authorizations
AuthorizationstringOptional

Authorization header for API key authentication.

Example:

Authorization: your-api-key-here
Body

Request object for subscribing to root change notifications via WebSocket

jsonrpcstring Β· enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier that will be returned in the response

Example: 1
stringOptional
or
numberOptional
methodstring Β· enumRequired

The WebSocket method name

Example: rootSubscribePossible values:
Responses
chevron-right
101

WebSocket notification for root changes

application/json

WebSocket notification sent when a new root is set by the validator

jsonrpcstring Β· enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
methodstring Β· enumRequired

Notification method name indicating this is a root notification

Example: rootNotificationPossible values:
post
/

Last updated