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

# getEpochSchedule

> Trả về thông tin lịch epoch từ cấu hình khởi nguyên của cụm này.



## OpenAPI

````yaml vi/openapi/rpc-http/getEpochSchedule.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    API cấu trúc thời gian blockchain để truy xuất các tham số lập lịch epoch
    của Solana, vốn chi phối các chu kỳ đồng thuận, khoảng thời gian luân phiên
    trình xác thực và cách tổ chức thời gian mạng.
  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: getEpochSchedule
      description: >
        Truy xuất các tham số thời gian cốt lõi xác định cấu trúc blockchain dựa
        trên epoch của Solana.

        API cấu hình mạng này cung cấp các hằng số thời gian cơ bản chi phối
        cách

        các slot được tổ chức thành epoch trên blockchain Solana. Epoch là đơn
        vị đo

        thời gian chính cho hoạt động luân phiên trình xác thực, phần thưởng
        staking, thu phí thuê và

        các hoạt động blockchain định kỳ khác. Các tham số lịch epoch xác định
        chính xác

        số lượng slot tạo thành một epoch và thời điểm tính toán lịch trình
        leader. Đây là thông tin thiết yếu cho

        các ứng dụng thực hiện phép tính dựa trên thời gian, hệ thống staking
        theo dõi kỳ thưởng,

        phần mềm trình xác thực dự đoán lịch trình leader và công cụ phân tích
        liên kết các sự kiện blockchain

        với cấu trúc thời gian cơ bản của mạng.
      operationId: getEpochSchedule
      requestBody:
        required: true
        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'
                  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
                  description: Tên của phương thức RPC cần gọi.
                  enum:
                    - getEpochSchedule
                  example: getEpochSchedule
                  default: getEpochSchedule
      responses:
        '200':
          description: Đã truy xuất thành công thông tin lịch epoch.
          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: object
                    description: >-
                      Tập hợp đầy đủ các hằng số thời gian xác định cấu trúc
                      epoch của blockchain Solana.
                    properties:
                      slotsPerEpoch:
                        type: integer
                        description: >-
                          Số lượng slot tạo thành một epoch Solana hoàn chỉnh
                          trong quá trình vận hành bình thường (sau giai đoạn
                          khởi động).
                        example: 8192
                      leaderScheduleSlotOffset:
                        type: integer
                        description: >-
                          Độ lệch trước một epoch, tại đó lịch trình leader của
                          trình xác thực cho epoch tiếp theo được tính toán và
                          công bố.
                        example: 8192
                      warmup:
                        type: boolean
                        description: >-
                          Giá trị boolean cho biết mạng có sử dụng giai đoạn
                          khởi động với độ dài epoch tăng dần từ genesis hay
                          không.
                        example: true
                      firstNormalEpoch:
                        type: integer
                        description: >-
                          Số hiệu epoch đầu tiên đạt độ dài tiêu chuẩn đầy đủ
                          như được xác định bởi slotsPerEpoch.
                        example: 8
                      firstNormalSlot:
                        type: integer
                        description: >-
                          Số hiệu slot tuyệt đối tại thời điểm các epoch bắt đầu
                          có độ dài tiêu chuẩn sau giai đoạn khởi động ban đầu.
                        example: 8160
              examples:
                response:
                  value:
                    jsonrpc: '2.0'
                    id: '1'
                    result:
                      slotsPerEpoch: 8192
                      leaderScheduleSlotOffset: 8192
                      warmup: true
                      firstNormalEpoch: 8
                      firstNormalSlot: 8160
        '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ệ
        '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
        '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:
  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).

````