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

# preconfUnsubscribe

> Stop a Preconfirmations subscription by its id and stop receiving preconfirmation notifications.

Stop a subscription started with [preconfSubscribe](https://www.helius.dev/docs/api-reference/pre-confirmations/preconfsubscribe.md). Notifications stop immediately.

Closing the connection removes all of its subscriptions, so you only need this method to stop one subscription while keeping others on the same connection alive.

## Body

**params** `array` *required*

A single-element array containing the integer subscription id returned by `preconfSubscribe`.

## Response

**result** `boolean`

`true` if the subscription existed and was yours.

```json Request theme={"system"}
{ "jsonrpc": "2.0", "id": 2, "method": "preconfUnsubscribe", "params": [24040] }
```

```json Response theme={"system"}
{ "jsonrpc": "2.0", "id": 2, "result": true }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.