[WSS] eth_unsubscribe

Cancel subscriptions by calling this method with the subscription ID. It returns a boolean indicating that the subscription was canceled successfully.

Parameters

  • subscription ID: The ID of the subscription you want to unsubscribe.
wscat -c wss://ethereum-mainnet-archive-ws.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj

'{"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}'

Returns

  • unsubscribed flag: BOOLEAN - True if the subscription is canceled successfully.
{
    "jsonrpc":"2.0",
    "id":1,
    "result":true
}