Skip to main content

unsubscribe_newHead RPC method

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

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

Code Examples

wscat -c wss://polkadot-rpc.dwellir.com \
# wait for connection
{"id":1,"jsonrpc":"2.0","method":"unsubscribe_newHead","params":["Extrinsic"]}