slotsUpdatesUnsubscribe
Unsubscribe from slot-update notifications.
This method will use 20 Compute Units.
Parameters
subscriptionID integer Required. The subscription id to cancel, ensuring it matches the previously generated subscription ID from the 'slotsUpdatesSubscribe' method.
Returns
result boolean. The result will be a boolean value with unsubscribed success message.
// Result
{ "jsonrpc": "2.0", "result": true, "id": 1 }wscat -c wss://mainnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE>
# wait for connection
{"id":1,"jsonrpc":"2.0","method": "slotsUpdatesUnsubscribe", "params": [SUBSCRIPTION_ID]}
Last updated
Was this helpful?