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

# Slot subscribe



## AsyncAPI

````yaml solana-rpc/websocket/asyncapi.json slotSubscribe
id: slotSubscribe
title: Slot subscribe
description: ''
servers:
  - id: production
    protocol: wss
    host: rpc-mainnet.solanatracker.io
    bindings: []
    variables: []
address: /
parameters: []
bindings: []
operations:
  - &ref_4
    id: subscribeToSlots
    title: Subscribe to slots
    type: send
    messages:
      - &ref_7
        id: slotSubscribe
        payload:
          - name: slotSubscribe
            description: Subscribe to slot notifications
            type: object
            properties:
              - name: jsonrpc
                type: string
                description: '2.0'
                required: false
              - name: id
                type: integer
                required: false
              - name: method
                type: string
                description: slotSubscribe
                required: false
        headers: []
        jsonPayloadSchema: &ref_0
          type: object
          properties:
            jsonrpc:
              type: string
              const: '2.0'
              default: '2.0'
              x-parser-schema-id: <anonymous-schema-131>
            id:
              type: integer
              default: 1
              x-parser-schema-id: <anonymous-schema-132>
            method:
              type: string
              const: slotSubscribe
              default: slotSubscribe
              x-parser-schema-id: <anonymous-schema-133>
          examples:
            - jsonrpc: '2.0'
              id: 1
              method: slotSubscribe
          x-parser-schema-id: <anonymous-schema-130>
        title: Slot subscribe
        description: Subscribe to slot notifications
        example: |-
          {
            "jsonrpc": "2.0",
            "id": 1,
            "method": "slotSubscribe"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: slotSubscribe
          - id: x-parser-message-name
            value: slotSubscribe
      - &ref_8
        id: slotNotification
        payload:
          - name: slotNotification
            description: Slot notification
            type: object
            properties:
              - name: jsonrpc
                type: string
                description: '2.0'
                required: false
              - name: method
                type: string
                description: slotNotification
                required: false
              - name: params
                type: object
                required: false
                properties:
                  - name: result
                    type: object
                    required: false
                    properties:
                      - name: parent
                        type: integer
                        description: Parent slot
                        required: false
                      - name: root
                        type: integer
                        description: Current root slot
                        required: false
                      - name: slot
                        type: integer
                        description: Newly processed slot
                        required: false
                  - name: subscription
                    type: integer
                    required: false
        headers: []
        jsonPayloadSchema: &ref_1
          type: object
          properties:
            jsonrpc:
              type: string
              const: '2.0'
              default: '2.0'
              x-parser-schema-id: <anonymous-schema-135>
            method:
              type: string
              const: slotNotification
              default: slotNotification
              x-parser-schema-id: <anonymous-schema-136>
            params:
              type: object
              properties:
                result:
                  type: object
                  properties:
                    parent:
                      type: integer
                      description: Parent slot
                      x-parser-schema-id: <anonymous-schema-139>
                    root:
                      type: integer
                      description: Current root slot
                      x-parser-schema-id: <anonymous-schema-140>
                    slot:
                      type: integer
                      description: Newly processed slot
                      x-parser-schema-id: <anonymous-schema-141>
                  x-parser-schema-id: <anonymous-schema-138>
                subscription:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-142>
              x-parser-schema-id: <anonymous-schema-137>
          examples:
            - jsonrpc: '2.0'
              method: slotNotification
              params:
                result:
                  parent: 75
                  root: 44
                  slot: 76
                subscription: 0
          x-parser-schema-id: <anonymous-schema-134>
        title: Slot notification
        description: Slot notification
        example: |-
          {
            "jsonrpc": "2.0",
            "method": "slotNotification",
            "params": {
              "result": {
                "parent": 75,
                "root": 44,
                "slot": 76
              },
              "subscription": 0
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: slotNotification
          - id: x-parser-message-name
            value: slotNotification
    bindings: []
    extensions: &ref_2
      - id: x-parser-unique-object-id
        value: slotSubscribe
  - &ref_3
    id: receiveSlotsNotifications
    title: Receive slots notifications
    type: receive
    messages:
      - &ref_5
        id: slotSubscribe
        payload:
          - name: slotSubscribe
            description: Subscribe to slot notifications
            type: object
            properties:
              - name: jsonrpc
                type: string
                description: '2.0'
                required: false
              - name: id
                type: integer
                required: false
              - name: method
                type: string
                description: slotSubscribe
                required: false
        headers: []
        jsonPayloadSchema: *ref_0
        title: Slot subscribe
        description: Subscribe to slot notifications
        example: |-
          {
            "jsonrpc": "2.0",
            "id": 1,
            "method": "slotSubscribe"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: slotSubscribe
          - id: x-parser-message-name
            value: slotSubscribe
      - &ref_6
        id: slotNotification
        payload:
          - name: slotNotification
            description: Slot notification
            type: object
            properties:
              - name: jsonrpc
                type: string
                description: '2.0'
                required: false
              - name: method
                type: string
                description: slotNotification
                required: false
              - name: params
                type: object
                required: false
                properties:
                  - name: result
                    type: object
                    required: false
                    properties:
                      - name: parent
                        type: integer
                        description: Parent slot
                        required: false
                      - name: root
                        type: integer
                        description: Current root slot
                        required: false
                      - name: slot
                        type: integer
                        description: Newly processed slot
                        required: false
                  - name: subscription
                    type: integer
                    required: false
        headers: []
        jsonPayloadSchema: *ref_1
        title: Slot notification
        description: Slot notification
        example: |-
          {
            "jsonrpc": "2.0",
            "method": "slotNotification",
            "params": {
              "result": {
                "parent": 75,
                "root": 44,
                "slot": 76
              },
              "subscription": 0
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: slotNotification
          - id: x-parser-message-name
            value: slotNotification
    bindings: []
    extensions: *ref_2
sendOperations:
  - *ref_3
receiveOperations:
  - *ref_4
sendMessages:
  - *ref_5
  - *ref_6
receiveMessages:
  - *ref_7
  - *ref_8
extensions:
  - id: x-parser-unique-object-id
    value: slotSubscribe
securitySchemes:
  - id: apiKeyAuth
    name: api_key
    type: httpApiKey
    description: >-
      API key for authentication. Provide your Solana Tracker API key as a query
      parameter.
    in: query
    extensions: []

````