> For the complete documentation index, see [llms.txt](https://docs.chainrpc.io/chainrpc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chainrpc.io/chainrpc/networks/ethereum/json-rpc-methods/subscription-methods/eth_unsubscribe.md).

# eth\_unsubscribe

Cancel subscriptions by calling `eth_unsubscribe` with the subscription ID. It returns a boolean indicating that the subscription was canceled successfully.

### REQUEST PARAMS

* `SUBSCRIPTION ID` *\[required]*

#### EXAMPLE

```bash
>wscat -c wss://eth.chainrpc.io/v3/YOUR-API-KEY

>{"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}
```

### RESPONSE

#### RESULT FIELDS

* `UNSUBSCRIBED FLAG` - true if the subscription is canceled successfully.

#### BODY

```json
{
    "id": 1, 
    "jsonrpc": "2.0", 
    "result": true
}
```
