Skip to main content

chain_unsubscribeAllHeads RPC method

Allows clients to unsubscribe from receiving updates on the newest headers via subscription.

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

Code Examples

wscat -c wss://api-polkadot.dwellir.com/<API-KEY> \
# wait for connection
{"id":1,"jsonrpc":"2.0","method":"chain_unsubscribeAllHeads","params":[]}