eth_unsubscribe - Arbitrum
Arbitrum API - Cancels an existing subscription so that no further events are sent.

Parameters

  1. 1.
    Subscription ID, as previously returned from an eth_subscribe call.

Returns

true if a subscription was successfully cancelled, or false if no subscription existed with the given ID.

Example

Request
wscat
1
wscat -c wss://arb-mainnet.g.alchemy.com/v2/your-api-key
2
3
{"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}
Copied!

Result

1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":true
5
}
Copied!
Arbitrum API
Alchemy Documentation