Methods

Unsubscribe

Unsubscribe from topics

Public · 1 param · Returns response

Method unsubscribe

Unsubscribe from topics

Request

Send a JSON-RPC request with method: "unsubscribe" and the parameters below.

topics*string[]
See all topics

Example

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "unsubscribe",
  "params": {
    "topics": [
      "wallet/deposit"
    ]
  }
}

Response

On success the server replies with a JSON-RPC response matching the request id and the fields below.

unsubscribed*string[]
See all topics

Example

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "unsubscribed": [
      "wallet/deposit"
    ]
  }
}

On failure the server replies with a JSON-RPC error object matching the request id. See Errors for the full list of codes and recovery hints.