The signatureUnsubscribe
method in Solana allows a client to unsubscribe from a signature subscription. This method can be used to cancel an existing subscription to transaction signature updates.
integer
- The ID of the subscription that you want to cancel. This is the subscription ID that was returned when calling signatureSubscribe
.boolean
- A boolean value indicating if the subscription was removed successfully. true
if removed successfully, false
if not.signatureUnsubscribe
code examples$ wscat -c YOUR_CHAINSTACK_WEBSOCKET_ENDPOINT
# Wait for the connection to be established
Connected (press CTRL+C to quit)
> {"jsonrpc":"2.0","id":1,"method":"signatureUnsubscribe","params":[0]}
signatureUnsubscribe
method is important for proper resource management in applications that use signature subscriptions. Common use cases include:
Was this page helpful?