Marketplace has launched, further enabling blockchain developers! Learn more

Contents

eth_unsubscribe RPC method

The eth_unsubscribe EVM method is only supported on the Avalanche C-Chain.

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:

To use the eth_unsubscribe EVM method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

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