Marketplace has launched, further enabling blockchain developers! Learn more

Contents

eth_unsubscribe RPC method

Parameters:

  1. subscription ID - string - A subscription ID that was previously generated in a eth_subscribe RPC request.

Returns:

  1. result - boolean - A boolean value indicating if the subscription was canceled successfully.

Code Examples:

wscat -c wss://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ 
# wait for connection 
{"id":1,"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0xe9549ac54eeec07f"]}
Ready to get started? Create a free account