Skip to main content

blockUnsubscribe RPC Method

Unsubscribe from block notifications.

Updated on
Nov 14, 2023

blockUnsubscribe RPC Method

Parameters

subscriptionID
integer
REQUIRED
The subscription id to cancel, ensuring it matches the previously generated subscription ID from the 'blockSubscribe' method

Returns

result
boolean
The unsubscribe success message
Request
1
wscat -c \
2
# wait for connection
3
{"id":1,"jsonrpc":"2.0","method":"blockUnsubscribe","params":[SUBSCRIPTION_ID]}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free