> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base.org/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_unsubscribe

> Cancels an active WebSocket subscription.

Cancels a subscription created with [`eth_subscribe`](/base-chain/api-reference/ethereum-json-rpc-api/eth_subscribe). The subscription ID is no longer valid after this call.

## Parameters

<ParamField body="subscriptionId" type="string" required>
  The subscription ID returned by `eth_subscribe`.
</ParamField>

## Returns

<ResponseField name="result" type="boolean">
  `true` if the subscription was successfully cancelled, `false` if the subscription ID was not found.
</ResponseField>

## Example

<CodeGroup>
  ```json Request theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_unsubscribe",
    "params": ["0x1887ec8b9589ccad00000000000532da"]
  }
  ```

  ```json Response (success) theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": true
  }
  ```

  ```json Response (not found) theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": false
  }
  ```
</CodeGroup>
