Skip to main content

unsubscribe_newHead RPC Method

Allows clients to unsubscribe from receiving updates on new block headers.

Updated on
Oct 4, 2023

unsubscribe_newHead RPC Method

Parameters

This method does not accept any parameters

Returns

result
boolean
Indicates the success of the unsubscription process. If true, the unsubscription was successful. If false, there might have been an issue with the unsubscription
Request
1
wscat -c \
2
# wait for connection
3
{"id":1,"jsonrpc":"2.0","method":"unsubscribe_newHead","params":["Extrinsic"]}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free