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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.chainstack.com/feedback

```json
{
  "path": "/reference/blockunsubscribe-solana",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# blockUnsubscribe | Solana

> Cancel a Solana block subscription with blockUnsubscribe. Stop receiving WebSocket notifications for new blocks added to the Solana blockchain.

See also [blockSubscribe | Solana](/reference/blocksubscribe-solana).

<Check>
  ### Get your own node endpoint today

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `integer` - The ID of the subscription that you want to cancel.

## Response

* `boolean` - A boolean value indicating if the subscription was removed successfully. `true` if removed successfully, `false` if not.

## `blockUnsubscribe` code examples

<Info>
  Note that subscriptions require a WebSocket connection. You can use a WebSocket client library for your programming language of choice to interact with Solana's WebSocket API.
</Info>

<CodeGroup>
  ```shell wscat theme={"system"}
  $ wscat -c YOUR_CHAINSTACK_WEBSOCKET_ENDPOINT
  # Wait for the connection to be established

  Connected (press CTRL+C to quit)

  > {"jsonrpc":"2.0","id":1,"method":"blockUnsubscribe","params":[0]}
  ```
</CodeGroup>

These examples demonstrate how to use the `blockUnsubscribe` method to remove a subscription matching the ID passed as a parameter. Replace `'YOUR_SOLANA_WEBSOCKET_ENDPOINT'` with your actual Solana WebSocket endpoint URL, and use the correct subscription ID in the `params` array.
