[WSS] eth_unsubscribe-polygon

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://polygon-mainnet-archive-ws.allthatnode.com:8545/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj

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

Returns

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