blockUnsubscribe - Solana
blockUnsubscribe. Terminates an active subscription to updates on the blockchain block
blockUnsubscribe - solana [Value: 0CU]
Terminates an active subscription to updates on the blockchain block
Use cases
- Unsubscribe from block updates using a subscription ID
- Stop receiving real-time block notifications
- Manage and cancel existing block subscriptions
Constraints
- Requires valid subscription ID for unsubscribing
- Disconnection may result in missed block data
- Only effective for current WebSocket session
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
wscat -c wss://solana.drpc.org \
# wait for connection
{"id":1,"jsonrpc":"2.0","method":"blockUnsubscribe","params":[SUBSCRIPTION_ID]}
Response
200
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Request params
idinteger
jsonrpcstring
methodstring
object
numberinteger
The subscription ID that was originally provided by the server when the account subscription was created.
Response
200
A boolean value indicating whether the unsubscription was successfulResponse params
object
idinteger
jsonrpcstring
resultboolean