slotUnsubscribe

slotUnsubscribe WebSocket Method

post
/

Unsubscribe from slot notifications. This method cancels an existing slot subscription identified by the subscription ID that was returned from a previous slotSubscribe call. Once unsubscribed, you will no longer receive slotNotification messages when new slots are processed by the validator. This is useful for stopping high-frequency slot monitoring when no longer needed.

Authorizations
AuthorizationstringOptional

Authorization header for API key authentication.

Example:

Authorization: your-api-key-here
Body

Request object for unsubscribing from slot change notifications

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: slotUnsubscribePossible values:
paramsinteger[] · min: 1 · max: 1Required

Method parameters array containing the slot subscription ID to cancel

Example: [0]
Responses
chevron-right
200

Unsubscription successful

application/json

Response indicating the success or failure of the slot unsubscribe operation

jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier matching the original request

Example: 1
stringOptional
or
numberOptional
resultbooleanOptional

Unsubscribe success indicator. Returns true if the slot subscription was successfully cancelled, false otherwise. A successful unsubscribe means you will no longer receive slotNotification messages when new slots are processed by the validator. This stops the high-frequency monitoring of slot progression.

Example: true
post
/

Last updated