eth_unsubscribe
Unsubscribes from a subscription using the specified subscription ID
Request
Examples
wscat -c wss://rpc.xone.org \
{"id":1,"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0xe9549ac54eeec07f"]}
Response
200 OK
{
"jsonrpc":"2.0",
"id":1,
"result":true
}Request params
| Name | Type | Description |
|---|---|---|
| id | integer | Request identifier |
| jsonrpc | string | JSON-RPC version |
| method | string | API method name |
| Parameters | string | |
| subscription_id | string | The ID of the subscription to unsubscribe from |
Response
200
Returns true if the subscription was successfully unsubscribed, false otherwise.| Name | Type | Description |
|---|---|---|
| Parameters | object | |
| id | integer | |
| jsonrpc | string | |
| result | boolean |