Skip to main content

eth_unsubscribe RPC Method

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

Updated on
May 22, 2024

eth_unsubscribe RPC Method

Parameters

subscription ID
string
REQUIRED
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 \
2
# wait for connection
3
{"id":1,"jsonrpc":"2.0","method":"eth_unsubscribe","params":["SUBSCRIPTION_ID"]}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free