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

# getSlot

> Runs the Solana RPC `getSlot` method.



## OpenAPI

````yaml getslot post /
openapi: 3.1.0
info:
  title: Solana RPC
  version: 1.0.0
  description: Solana RPC HTTP method reference.
servers:
  - url: https://rpc-mainnet.solanatracker.io
    description: Mainnet RPC endpoint
security: []
paths:
  /:
    post:
      summary: Run `getSlot`
      description: Runs the Solana RPC `getSlot` method.
      operationId: getslot
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  allOf:
                    - type: string
                      enum:
                        - '2.0'
                      description: The JSON-RPC protocol version.
                      example: '2.0'
                      default: '2.0'
                id:
                  allOf:
                    - type: string
                      description: A unique identifier for the request.
                      example: '1'
                      default: '1'
                method:
                  allOf:
                    - type: string
                      enum:
                        - getSlot
                      description: The name of the RPC method to invoke.
                      example: getSlot
                      default: getSlot
                params:
                  allOf:
                    - type: array
                      description: Optional configuration object.
                      default: []
                      items:
                        type: object
                        properties:
                          commitment:
                            type: string
                            description: >-
                              The finality level to retrieve the slot for
                              (processed = fastest, finalized = fully
                              confirmed).
                            enum:
                              - confirmed
                              - finalized
                              - processed
                            example: finalized
                          minContextSlot:
                            type: integer
                            description: >-
                              Minimum Solana blockchain slot that must be
                              reached before processing this request.
                            example: 2000
              required:
                - jsonrpc
                - id
                - method
                - params
            examples:
              getSlotExample:
                value:
                  jsonrpc: '2.0'
                  id: db16f277-1a22-41ff-9f85-f37e2cd77900
                  method: getSlot
                  params:
                    - commitment: confirmed
      responses:
        '200':
          description: Successfully retrieved the current slot.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                  result:
                    allOf:
                      - type: integer
                        description: >-
                          Current Solana blockchain slot number representing the
                          network's height and progress.
                        example: 1234
              examples:
                getSlotExample:
                  value:
                    jsonrpc: '2.0'
                    id: db16f277-1a22-41ff-9f85-f37e2cd77900
                    result: 1234
      security:
        - ApiKeyQuery: []
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````