programUnsubscribe - Solana

programUnsubscribe. Cancels an active subscription to updates for a specific program account

programUnsubscribe - solana [Value: 0CU]
Cancels an active subscription to updates for a specific program account
Use cases

Use cases

  • Unsubscribe from program event notifications
  • Stop receiving updates for a program subscription
  • Efficiently manage active WebSocket program subscriptions
Constraints

Constraints

  • Requires an active program subscription ID
  • Disconnection may lead to missed updates
  • Only valid for active WebSocket connections
Get started
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":"programUnsubscribe","params":[0]}
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": true
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersobject
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 successful

Response params

object
idinteger
jsonrpcstring
resultboolean