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

# getEpochInfo

> 現在のエポックに関する情報を返します。

## リクエストパラメータ

<ParamField body="commitment" type="string">
  リクエストのコミットメントレベル。

  * `confirmed`
  * `finalized`
</ParamField>

<ParamField body="minContextSlot" type="number">
  リクエストを評価できる最小スロット。
</ParamField>


## OpenAPI

````yaml ja/openapi/rpc-http/getEpochInfo.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    バリデーターサイクルの進捗、ステーキング期間、ブロックチェーン時間のメトリクスを追跡するための包括的なSolanaエポック監視API。詳細なエポック統計を提供します。
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: メインネットRPCエンドポイント
  - url: https://devnet.helius-rpc.com
    description: Devnet RPCエンドポイント
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getEpochInfo
      description: >-
        現在のSolanaエポック、バリデーターサイクル、ネットワークの進行状況に関する詳細情報を取得します。この重要なAPIは、現在のエポック番号、スロットの進行、トランザクション数を含む包括的なエポックメトリクスを提供します。エポックはバリデーターのローテーションサイクル、ステーキング報酬期間、Solanaブロックチェーン上の時間区分を表します。ステーキングアプリケーション、報酬計算ツール、バリデータ監視ツール、およびネットワークの進捗を追跡したり、報酬分配やプロトコルのアップグレードなどのエポックベースのロジックを実装する必要があるアプリケーションにとって重要です。
      operationId: getEpochInfo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  description: JSON-RPCプロトコルバージョン。
                  enum:
                    - '2.0'
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: リクエストの一意の識別子。
                  example: '1'
                  default: '1'
                method:
                  type: string
                  description: 呼び出すRPCメソッドの名前。
                  enum:
                    - getEpochInfo
                  example: getEpochInfo
                  default: getEpochInfo
                params:
                  type: array
                  description: リクエストのオプションパラメーター。
                  default: []
                  items:
                    type: object
                    properties:
                      commitment:
                        type: string
                        description: リクエストのコミットメントレベル。
                        enum:
                          - confirmed
                          - finalized
                        example: finalized
                      minContextSlot:
                        type: integer
                        description: リクエストが評価されることができる最小スロット。
                        example: 1000
      responses:
        '200':
          description: エポック情報が正常に取得されました。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: JSON-RPCプロトコルバージョン。
                    enum:
                      - '2.0'
                    example: '2.0'
                  id:
                    type: string
                    description: リクエストに一致する識別子。
                    example: '1'
                  result:
                    type: object
                    properties:
                      absoluteSlot:
                        type: integer
                        description: グローバルブロックチェーンの進行を表す現在のSolanaスロット番号。
                        example: 166598
                      blockHeight:
                        type: integer
                        description: 現在のSolanaブロックチェーンのブロック高。
                        example: 166500
                      epoch:
                        type: integer
                        description: バリデーターサイクルとステーキング期間を表す現在のSolanaエポック番号。
                        example: 27
                      slotIndex:
                        type: integer
                        description: エポック内の現在の位置、バリデーターサイクルの進行を示します。
                        example: 2790
                      slotsInEpoch:
                        type: integer
                        description: 現在のエポックの総スロット数、エポックの期間とバリデータスケジュールの長さを定義します。
                        example: 8192
                      transactionCount:
                        type: integer
                        nullable: true
                        description: 創世以来Solanaで処理された成功したトランザクションの累計数。
                        example: 22661093
              examples:
                default:
                  value:
                    jsonrpc: '2.0'
                    id: '1'
                    result:
                      absoluteSlot: 166598
                      blockHeight: 166500
                      epoch: 27
                      slotIndex: 2790
                      slotsInEpoch: 8192
                      transactionCount: 22661093
        '400':
          description: 不正なリクエスト - 無効なリクエストパラメーターまたは不正なリクエスト。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Invalid params
        '401':
          description: 認証エラー - 無効または欠落したAPIキー。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Unauthorized
        '429':
          description: リクエストが多すぎます - レート制限を超えました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Too many requests
        '500':
          description: 内部サーバーエラー - サーバーでエラーが発生しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Internal error
        '503':
          description: サービス利用不可 - サービスは一時的に利用できません。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Service unavailable
        '504':
          description: ゲートウェイタイムアウト - リクエストがタイムアウトしました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Gateway timeout
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: JSON-RPCプロトコルバージョン。
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: エラーコード。
              example: -32602
            message:
              type: string
              description: エラーメッセージ。
            data:
              type: object
              description: エラーに関する追加データ。
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Helius
        APIキー。無料で取得できます。[ダッシュボード](https://dashboard.helius.dev/api-keys)を参照してください。

````