eth_unsubscribe
POST wss://mainnet-ws.valuechain.xyz
Cancels a WebSocket subscription.
Send over the same WebSocket connection that created the subscription.
Parameters
Name
Type
Required
Description
subscriptionId
data
Yes
ID returned by eth_subscribe.
Result
Unsubscribed (boolean): true if the subscription existed and was removed.
Example
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}Code examples
cURL
JavaScript
Python
Last updated