Skip to main content

chain_unsubscribeNewHead RPC Method

Allows clients to unsubscribe from receiving updates on the newest headers via subscription. The API credit value for this method is 40.

Updated on
Feb 26, 2025

chain_unsubscribeNewHead RPC Method

Parameters

This method does not accept any parameters

Returns

result
boolean
A boolean value indicating the success of the unsubscription process. If true, the unsubscription was successful. If false, there might have been an error in the unsubscription process
Request
1
wscat -c wss://docs-demo.peaq-mainnet.quiknode.pro/ \
2
# wait for connection
3
{"id":1,"jsonrpc":"2.0","method":"chain_unsubscribeNewHead","params":[]}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free