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

# getBlockTime

> ブロックの推定生成時刻を返します。



## OpenAPI

````yaml ja/openapi/rpc-http/getBlockTime.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    特定のSolanaブロックが生成された際のUnixタイムスタンプを取得するためのブロックチェーンタイムスタンプ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: getBlockTime
      description: >
        Solanaブロックのスロット番号を対応する現実世界のタイムスタンプに変換します。

        この時間相関APIは、ブロックチェーンのスロットをUnixタイムスタンプ（エポック秒）に変換し、特定のブロックが生成された正確な時間を提供します。オンチェーンイベントと現実の時間の正確なタイミング関係を確立する必要があるアプリケーションにとって重要であり、トランザクション履歴表示、財務報告ツール、監査システム、時間的パターンを追跡する分析プラットフォーム、税金計算ソフトウェア、および技術的なスロット番号だけでなく、認識しやすい人間が読み取れる日付と時間でブロックチェーンの活動を提示する必要があるアプリケーションにとって必須です。
      operationId: getBlockTime
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              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:
                    - getBlockTime
                  description: 呼び出すべきRPCメソッドの名前。
                  default: getBlockTime
                params:
                  type: array
                  description: リクエストのパラメータ。
                  default:
                    - 433000000
                  items:
                    type: integer
                    description: 対応するタイムスタンプを取得するためのブロックスロット番号。
                    example: 5
      responses:
        '200':
          description: ブロックタイムを正常に取得しました。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                  result:
                    type: integer
                    description: この特定のSolanaブロックがバリデーターによって生成されたUnixタイムスタンプ（ユニックスエポック後の秒数）。
                    example: 1574721591
        '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:
  schemas:
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Helius
        APIキーです。無料で[ダッシュボード](https://dashboard.helius.dev/api-keys)で取得できます。

````