> ## 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.

# slotSubscribe | Solana

> Subscribe to Solana slot updates with slotSubscribe. Receive real-time WebSocket notifications whenever the validator processes a new slot on the network.

## Parameters

None. This method does not accept any parameters.

## Response

* `result` - An integer subscription id (needed to unsubscribe)

* `subscription` - An object containing slot information:

  * `slot` - The current slot height

  * `parent` - The parent slot height

  * `root` - The current root slot height

  * `status` - The processing status of the slot:

    * `"processed"` - Slot has been processed
    * `"confirmed"` - Slot has been confirmed
    * `"finalized"` - Slot has been finalized

## `slotSubscribe` code examples

This example subscribes to slot updates.

<Info>
  Note that subscriptions require a WebSocket connection and [WebSocket cat](https://www.npmjs.com/package/wscat) for you to use this method in the console.

  Install WebSocket cat with:

  `npm install -g wscat`
</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":"slotSubscribe"}
  ```
</CodeGroup>

## Use case

The `slotSubscribe` method is essential for applications that need to monitor the progress of the Solana blockchain. Common use cases include:

* Block height tracking: Monitor the current slot height of the blockchain
* Chain progress monitoring: Track the advancement of processed, confirmed, and finalized slots
* Timing operations: Coordinate operations based on slot progression
* UI updates: Update user interfaces with current blockchain progress
* Performance monitoring: Track slot processing times and chain progress rates

By subscribing to slot updates, applications can maintain accurate information about the current state of the blockchain and coordinate operations based on slot progression.
