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

# isBlockhashValid

> ブロックハッシュがまだ有効かどうかを返します。

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

<ParamField body="blockhash" type="string" required>
  有効性を確認するブロックハッシュ。base-58 エンコードされた文字列として。
</ParamField>

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

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

<ParamField body="minContextSlot" type="number">
  リクエストが評価される最低スロット。
</ParamField>


## OpenAPI

````yaml ja/openapi/rpc-http/isBlockhashValid.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: デブネットRPCエンドポイント
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: isBlockhashValid
      description: >
        Solanaのブロックハッシュがトランザクションの提出にまだ有効かどうかを確認します。この重要なトランザクション準備APIは、以前に取得したブロックハッシュが有効期間内（通常は約2分または約150ブロック）にあるかどうかをアプリケーションが判断できるようにします。有効期限切れのブロックハッシュを使用したトランザクションはネットワークによって拒否されるため、提出前に有効性を確認することで、トランザクションの失敗やタイムアウトエラーを防ぐことができます。ウォレットアプリケーション、取引所、支払いプロセッサ、および事前にトランザクションを準備する必要があるサービスや、保留中のトランザクションがまだ提出可能かどうか、または新しいブロックハッシュで再構築する必要があるかどうかを確認する必要があるサービスにとって重要です。
      operationId: isBlockhashValid
      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: '45'
                  default: '1'
                method:
                  type: string
                  enum:
                    - isBlockhashValid
                  description: 呼び出すRPCメソッドの名前。
                  example: isBlockhashValid
                  default: isBlockhashValid
                params:
                  type: array
                  description: ブロックハッシュの有効性を評価するためのパラメーター。
                  default:
                    - J7rBdM6AecPDEZp8aPq5iPSNKVkU5Q76F3oAV4eW5wsW
                    - commitment: processed
                  items:
                    oneOf:
                      - type: string
                        description: 有効性ステータスの確認対象のブロックハッシュ（Base-58エンコード文字列）。
                        example: J7rBdM6AecPDEZp8aPq5iPSNKVkU5Q76F3oAV4eW5wsW
                      - type: object
                        description: リクエストの設定オプション。
                        properties:
                          commitment:
                            type: string
                            description: リクエストのコミットメントレベル。
                            enum:
                              - confirmed
                              - finalized
                              - processed
                            example: processed
                          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: '45'
                  result:
                    type: object
                    description: ブロックハッシュの有効性の結果。
                    properties:
                      context:
                        type: object
                        description: レスポンスのコンテキスト。
                        properties:
                          slot:
                            type: integer
                            description: データが取得されたスロット。
                            example: 2483
                      value:
                        type: boolean
                        description: このブロックハッシュがまだ有効期限内であり、新しいトランザクションに使用できるかどうかを示すブール値。
                        example: false
              examples:
                default:
                  $ref: '#/components/examples/isBlockhashValidResponse'
        '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:
    isBlockhashValidResponse:
      value:
        jsonrpc: '2.0'
        id: '45'
        result:
          context:
            slot: 2483
          value: false
  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)から取得できます。

````