> For the complete documentation index, see [llms.txt](/llms.txt).

# `eth_unsubscribe`

Cancel subscriptions by calling this method with the subscription ID. It returns a boolean indicating that the subscription was canceled successfully. This method uses [10 credits](/services/get-started/pricing/) from your daily balance.

## Parameters[​](#parameters "Direct link to Parameters")

- `subscription ID`: The ID of the subscription you want to unsubscribe.

## Returns[​](#returns "Direct link to Returns")

- `unsubscribed flag`: (boolean) `True` if the subscription is canceled successfully.

## Example[​](#example "Direct link to Example")

Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://app.infura.io/).

WebSocket connections only

Subscription methods are available for [WebSocket](/services/concepts/websockets/) connections only.

### Request[​](#request "Direct link to Request")

- WSS

```
wscat -c wss://scroll-mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}'

```

### Response[​](#response "Direct link to Response")

- JSON

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

```
