# eth\_unsubscribe

Cancels an existing subscription so that no further events are sent.

This method will use `20` [Compute Units](../../about/billing).

***

## **Parameters**

* `subscription name` - string, same as previously returned from an [eth\_subscribe](https://app.gitbook.com/o/cJtxpQ7oeewtoIgMb5kv/s/F3uvE671dWWOTAu9svnI/~/changes/122/hedera/copy-of-execution-api/eth_subscribe) call

```json
params: [
  "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",
]
```

## Returns

`true` if a subscription was successfully cancelled, or `false` if no subscription existed with the given ID.

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

{% tabs %}
{% tab title="mainnet" %}
```bash
wscat -c wss:///mainnet.mezo.validationcloud.io/v1/wss/<YOUR_API_KEY_HERE>

{"jsonrpc":  "2.0",  "id":  1,  "method":"eth_subscribe","params":["newHeads"]}
{"jsonrpc":"2.0","result":"0x5302037dae412a3454143512a3c7617b","id":1}
## subscription data
{"id": 1, "jsonrpc":  "2.0", "method": "eth_unsubscribe", "params": ["0x5302037dae412a3454143512a3c7617b"]}
{"jsonrpc":"2.0","result":true,"id":1}
```
{% endtab %}
{% endtabs %}

