> For the complete documentation index, see [llms.txt](https://docs.triton.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.triton.one/solana/rpc-methods/real-time-streaming/whirligig-websocket/blockunsubscribe.md).

# blockUnsubscribe

Cancel a blockSubscribe subscription by id over WebSocket; returns true, or an Invalid subscription id error.

## Request

{% tabs %}
{% tab title="WebSocket message" %}

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "blockUnsubscribe",
  "params": [0]
}
```

{% endtab %}
{% endtabs %}

## Parameters

**`subscription id`** · integer · required

Subscription id returned by `blockSubscribe`.

## Response

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

## Result

Returns `true` if the subscription was removed. Returns an error if the subscription id is unknown.

***

*Adapted from the* [*Solana `blockUnsubscribe` reference*](https://solana.com/docs/rpc/websocket/blockunsubscribe)*, maintained by the Solana Foundation.*

***

<i class="fa-life-ring">:life-ring:</i> Contact support by clicking the chat icon in your [customer dashboard](https://customers.triton.one)\ <i class="fa-briefcase">:briefcase:</i> Sales questions? [Contact us](https://triton.one/contact)\ <i class="fa-sparkles">:sparkles:</i> AI agent? Read [llms.txt](https://docs.triton.one/llms.txt)\ <i class="fa-rss">:rss:</i> Follow updates: [Blog](https://blog.triton.one) · [X](https://x.com/triton_one) · [YouTube](https://www.youtube.com/@triton_one_ltd) · [Telegram](https://t.me/tritonone) · [GitHub](https://github.com/rpcpool)
