eth_unsubscribe
Last updated
Cancel subscriptions by calling eth_unsubscribe with the subscription ID. It returns a boolean indicating that the subscription was canceled successfully.
SUBSCRIPTION ID [required]
>wscat -c wss://eth.chainrpc.io/v3/YOUR-API-KEY
>{"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}UNSUBSCRIBED FLAG - true if the subscription is canceled successfully.
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}Last updated