eth_unsubscribe RPC method
It's true when the client is actively listening for network connections, otherwise false
Returns
Confirmation
- True if the subscription is canceled successfully.
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Parameters
subscription ID
[required] ( It was previously generated in a eth_subscribe JSON-RPC request)
Request
POST https://<network>.chainnodes.org/YOUR-API-KEY
👍
Confusing? Ask blockchain developers in Chainnodes Telegram Chat (opens in a new tab)
Example
- WSS Request with a JSON RPC call in the body
- Replace YOUR-API-KEY with the API key from your Chainnodes.org Dashboard
- You can use a different supported network by replacing
mainnet
wscat \
-c wss://mainnet.chainnodes.org/YOUR-API-KEY
>{"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x44567e1f7aa50f78e15c1a93dd9cbfd3"]}