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

# getSlot

> 指定されたまたはデフォルトのコミットメントレベルに達したスロットを返します。

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

<ParamField body="commitment" type="string">
  スロットを取得するための最終性レベル（processed = 最速、finalized = 完全に確認済み）。

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

<ParamField body="minContextSlot" type="number">
  このリクエストを処理する前に到達する必要があるSolanaブロックチェーンの最低スロット。
</ParamField>


## OpenAPI

````yaml ja/openapi/rpc-http/getSlot.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: getSlot
      description: |
        現在のSolanaブロックチェーン上のスロット番号をファイナリティ保証を設定して取得します。
        この基本的なAPIは、ネットワークの進行に関するリアルタイム情報を提供し、
        同期、監視、およびブロックチェーンの進展を追跡するために重要です。スロット番号は
        チェーンの現在の高さを表しており、トランザクションの包含、ブロックのタイミング、
        ファイナリティの状態を決定するための基準として使用されます。ネットワークの進捗を追跡したり、
        確認ステータスを判断したり、ブロックチェーン同期に基づいたタイミングロジックを
        実装する必要があるアプリケーションにとって重要です。
      operationId: getSlot
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: JSON-RPCプロトコルのバージョン。
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: リクエストのユニークな識別子。
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getSlot
                  description: 呼び出すRPCメソッドの名前。
                  example: getSlot
                  default: getSlot
                params:
                  type: array
                  description: オプションの設定オブジェクト。
                  default: []
                  items:
                    type: object
                    properties:
                      commitment:
                        type: string
                        description: >-
                          スロットを取得するための完了度レベル（processed = 最速、finalized =
                          完全に確認済み）。
                        enum:
                          - confirmed
                          - finalized
                          - processed
                        example: finalized
                      minContextSlot:
                        type: integer
                        description: このリクエストを処理する前に達成しなければならない最低Solanaブロックチェーンスロット。
                        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: integer
                    description: ネットワークの高さと進捗を表す現在のSolanaブロックチェーンスロット番号。
                    example: 1234
              examples:
                getSlotExample:
                  $ref: '#/components/examples/getSlotResponse'
        '400':
          description: 不正なリクエスト - 無効なリクエストパラメータまたは不正なリクエスト形式。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: 無効なパラメータ
                id: '1'
        '401':
          description: 未承認 - 無効または不足しているAPIキー。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: 未承認
                id: '1'
        '429':
          description: リクエストが多すぎる - レート制限を超過しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: リクエストが多すぎます
                id: '1'
        '500':
          description: 内部サーバーエラー - サーバーでエラーが発生しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: 内部エラー
                id: '1'
        '503':
          description: サービス利用不可 - サービスが一時的に利用不可です。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: サービス利用不可
                id: '1'
        '504':
          description: ゲートウェイタイムアウト - リクエストがタイムアウトしました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: ゲートウェイタイムアウト
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  examples:
    getSlotResponse:
      value:
        jsonrpc: '2.0'
        id: '1'
        result: 1234
  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: エラーに関する追加データ。
        id:
          type: string
          description: リクエストに対応する識別子。
          example: '1'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Helius
        APIキーです。[ダッシュボード](https://dashboard.helius.dev/api-keys)で無料で取得できます。

````