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

# accountUnsubscribe

(Subscription Websocket) Unsubscribe from account change notifications.

This method will use `20` [Compute Units](/nodeapi/about/billing).

***

## **Parameters**

* `number` The account id for subscription to cancel.

## Returns

`result` boolean. The result will be an RpcResponse JSON object with unsubscribed success message.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{ "jsonrpc": "2.0", "result": true, "id": 1 }
```

<CodeGroup>
  ```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  wscat -c wss://mainnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE>
  # wait for connection
  {"id":1,"jsonrpc":"2.0","method": "accountUnsubscribe", "params": [0]}
      
  ```

  ```bash title="devnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  wscat -c wss://devnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE>
  # wait for connection
  {"id":1,"jsonrpc":"2.0","method": "accountUnsubscribe", "params": [0]}
      
  ```
</CodeGroup>


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