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

# getSlotLeaders

> getSlotLeaders trả về các trình xác thực được lên lịch dẫn dắt từng slot trong phạm vi tối đa 5.000 slot Solana — dùng cho việc định tuyến có nhận biết leader và giám sát trình xác thực.

## Tham số yêu cầu

<ParamField body="slot" type="number" required>
  Số slot Solana bắt đầu để truy xuất lịch trình trình xác thực.
</ParamField>

<ParamField body="slot" type="number" required>
  Số slot liên tiếp cần truy xuất danh tính các trình xác thực đã lên lịch (1-5.000).
</ParamField>


## OpenAPI

````yaml vi/openapi/rpc-http/getSlotLeaders.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    API dự báo lịch trình trình xác thực để truy xuất chuỗi trình xác thực
    Solana sắp tới được chỉ định sản xuất khối trên nhiều slot trong tương lai.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: Điểm cuối RPC Mainnet
  - url: https://devnet.helius-rpc.com
    description: Điểm cuối RPC Devnet
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getSlotLeaders
      description: >
        Truy xuất chuỗi có thứ tự của các trình xác thực Solana được lên lịch
        sản xuất khối cho các slot trong tương lai.

        API đồng thuận dự báo này trả về toàn bộ lịch luân phiên trình xác thực
        cho một phạm vi slot

        sắp tới, cho phép các ứng dụng dự báo trình xác thực nào sẽ chịu trách
        nhiệm sản xuất khối.

        Thiết yếu đối với bảng điều khiển giám sát mạng, theo dõi hiệu suất
        trình xác thực, công cụ trực quan hóa

        đồng thuận và các ứng dụng cần dự đoán lịch trình leader sắp tới.

        Hỗ trợ truy vấn tối đa 5.000 slot trong một yêu cầu để truy xuất lịch
        trình hiệu quả.
      operationId: getSlotLeaders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: Phiên bản giao thức JSON-RPC.
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: Mã định danh duy nhất cho yêu cầu.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getSlotLeaders
                  description: Tên của phương thức RPC cần gọi.
                  example: getSlotLeaders
                  default: getSlotLeaders
                params:
                  type: array
                  description: Các tham số để chỉ định slot bắt đầu và giới hạn.
                  default:
                    - 433341000
                    - 10
                  items:
                    oneOf:
                      - type: integer
                        description: >-
                          Số slot Solana bắt đầu để truy xuất lịch trình trình
                          xác thực.
                        example: 100
                      - type: integer
                        description: >-
                          Số slot liên tiếp cần truy xuất danh tính trình xác
                          thực đã lên lịch (1-5.000).
                        example: 10
      responses:
        '200':
          description: Đã truy xuất thành công các leader của slot.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: Phiên bản giao thức JSON-RPC.
                    enum:
                      - '2.0'
                    example: '2.0'
                  id:
                    type: string
                    description: Mã định danh khớp với yêu cầu.
                    example: '1'
                  result:
                    type: array
                    description: >-
                      Chuỗi có thứ tự gồm danh tính các trình xác thực Solana
                      được lên lịch sản xuất khối sắp tới.
                    items:
                      type: string
                      description: >-
                        Danh tính trình xác thực Solana (khóa công khai) được
                        lên lịch làm trình sản xuất khối cho một slot cụ thể.
                      example: ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n
              examples:
                example1:
                  $ref: '#/components/examples/getSlotLeadersResponse'
        '400':
          description: >-
            Yêu cầu không hợp lệ - Tham số yêu cầu không hợp lệ hoặc yêu cầu sai
            định dạng.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Tham số không hợp lệ
                id: '1'
        '401':
          description: Không được phép - Khóa API không hợp lệ hoặc bị thiếu.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Không được phép
                id: '1'
        '429':
          description: Quá nhiều yêu cầu - Đã vượt quá giới hạn tốc độ.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Quá nhiều yêu cầu
                id: '1'
        '500':
          description: Lỗi máy chủ nội bộ - Đã xảy ra lỗi trên máy chủ.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Lỗi nội bộ
                id: '1'
        '503':
          description: Dịch vụ không khả dụng - Dịch vụ tạm thời không khả dụng.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Dịch vụ không khả dụng
                id: '1'
        '504':
          description: Hết thời gian chờ cổng kết nối - Yêu cầu đã hết thời gian chờ.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Hết thời gian chờ cổng kết nối
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  examples:
    getSlotLeadersResponse:
      value:
        jsonrpc: '2.0'
        id: '1'
        result:
          - ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n
          - ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n
          - ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n
          - ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n
          - Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM
          - Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM
          - Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM
          - Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM
          - DWvDTSh3qfn88UoQTEKRV2JnLt5jtJAVoiCo3ivtMwXP
          - DWvDTSh3qfn88UoQTEKRV2JnLt5jtJAVoiCo3ivtMwXP
  schemas:
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: Phiên bản giao thức JSON-RPC.
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: Mã lỗi.
              example: -32602
            message:
              type: string
              description: Thông báo lỗi.
            data:
              type: object
              description: Dữ liệu bổ sung về lỗi.
        id:
          type: string
          description: Mã định danh khớp với yêu cầu.
          example: '1'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Khóa API Helius của bạn. Bạn có thể nhận khóa miễn phí trong [bảng điều
        khiển](https://dashboard.helius.dev/api-keys).

````