accountUnsubscribe
Unsubscribe from account change notifications. This method cancels an existing account subscription identified by the subscription ID that was returned from a previous accountSubscribe call. Once unsubscribed, you will no longer receive accountNotification messages for the specified subscription. Parameters
subscriptionId(required) — Subscription id returned by accountSubscribe.
Pass Authorization: <api-key> on each request.
JSON-RPC protocol version.
2.0Possible values: Request identifier echoed back in the response.
1Must be accountUnsubscribe.
accountUnsubscribePossible values: Successful accountUnsubscribe 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": "accountUnsubscribe",
"params": [
24040
]
}' | websocat wss://public.rpc.solanavibestation.com{
"jsonrpc": "2.0",
"id": 1,
"result": true
}Last updated