slotUnsubscribe
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. Parameters
subscriptionId(required) — Subscription id returned by slotSubscribe.
Pass Authorization: <api-key> on each request.
JSON-RPC protocol version.
2.0Possible values: Request identifier echoed back in the response.
1Must be slotUnsubscribe.
slotUnsubscribePossible values: Successful slotUnsubscribe response.
Base envelope of every JSON-RPC 2.0 response.
2.0Possible values: Echoed request id.
1True if the unsubscribe succeeded.
trueAuthentication required or invalid.
Insufficient permissions for the request.
Rate limit exceeded for this tier.
Unexpected server error.
# cURL doesn't speak WebSocket — use `websocat` (or `wscat -c`).
# Install: cargo install websocat # or npm install -g wscat
echo '{
"jsonrpc": "2.0",
"id": 1,
"method": "slotUnsubscribe",
"params": [
24040
]
}' | websocat wss://public.rpc.solanavibestation.com{
"jsonrpc": "2.0",
"id": 1,
"result": true
}Last updated