Arbitrum API method that allows a client to unsubscribe from a specific subscription.
eth_unsubscribe
method can be used to cancel the following subscriptions:
string
— the ID of the subscription that you want to cancelboolean
— the boolean value indicating if the subscriptions were removed successfully. true
if removed successfully, false
if not.eth_unsubscribe
code examplesnpm install -g wscat
$ 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": "eth_unsubscribe", "params": ["0x7529626735859f32962b10b19ee2e3eb"]}