eth_unsubscribe

Cancels an active subscription given its subscription ID. ⚠️ **WARNING: WebSocket-Only Method** ⚠️ > This method REQUIRES a WebSocket connection using `wss://` protocol. It will NOT work with standard HTTP/HTTPS requests or `curl`. > See the [WebSocket documentation](https://docs.alchemy.com/reference/subscription-api) for examples.

Path Parameters

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
Subscription IDstringOptionalformat: "^0x[0-9a-f]{64}$"
The identifier of the subscription to cancel.

Response

A boolean indicating whether the subscription was successfully canceled.