Skip to main content

eth_unsubscribe RPC Method

Cancels an existing subscription so that no further events are sent.

Updated on
May 14, 2024

eth_unsubscribe RPC Method

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

Parameters

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

Returns

result
A boolean value indicating if the subscription was canceled successfully
Request
1
wscat -c ext/bc/C/ws \
2
# wait for connection
3
{"id":1,"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0xe9549ac54eeec07f"]}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free