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

# getTransaction

> 確認済みトランザクションの詳細を返します。

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

<ParamField body="transaction" type="string" required>
  検索用のbase-58エンコード文字列としてのSolanaトランザクション署名。
</ParamField>

<ParamField body="transaction" type="string" required>
  返されるSolanaトランザクションデータのエンコーディング形式。

  * `json`
  * `jsonParsed`
  * `base64`
  * `base58`
</ParamField>

<ParamField body="commitment" type="string">
  トランザクションの最終確認検証のためのブロックチェーンコミットメントレベル。

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

<ParamField body="maxSupportedTransactionVersion" type="number">
  レスポンスで返される最大Solanaトランザクションバージョン（バージョン付きトランザクションサポート用）。
</ParamField>


## OpenAPI

````yaml ja/openapi/rpc-http/getTransaction.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: Solanaブロックチェーンから詳細な取引データ、署名、および実行結果にアクセスするための高度な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: getTransaction
      description: |
        取引署名によってSolanaブロックチェーンから詳細な取引データを取得します。
        アカウントの変更、命令の詳細、トークン転送、プログラム
        ログ、および実行ステータスを含む完全なデータにアクセスします。
        解析データ、複数のエンコード形式、および取引バージョンのサポートを提供します。
      operationId: getTransaction
      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:
                    - getTransaction
                  description: 呼び出すRPCメソッドの名前。
                  example: getTransaction
                  default: getTransaction
                params:
                  type: array
                  description: 署名によってSolana取引をクエリするためのパラメータ。
                  default:
                    - >-
                      D13jTJYXoQBcRY9AfT5xRtsew7ENgCkNs6mwwwAcUCp4ZZCEM7YwZ7en4tVsoDa7Gu75Jjj2FgLXNUz8Zmgedff
                  items:
                    oneOf:
                      - type: string
                        description: 検索用としてbase-58エンコードされたSolana取引署名。
                        example: >-
                          D13jTJYXoQBcRY9AfT5xRtsew7ENgCkNs6mwwwAcUCp4ZZCEM7YwZ7en4tVsoDa7Gu75Jjj2FgLXNUz8Zmgedff
                      - type: string
                        description: 返されるSolana取引データのエンコード形式。
                        enum:
                          - json
                          - jsonParsed
                          - base64
                          - base58
                        example: json
                      - type: object
                        description: Solana取引取得のための高度な構成オプション。
                        properties:
                          commitment:
                            type: string
                            description: 取引の最終確定確認のためのブロックチェーンコミットメントレベル。
                            enum:
                              - confirmed
                              - finalized
                            example: finalized
                          maxSupportedTransactionVersion:
                            type: integer
                            description: 応答で返される最大Solana取引バージョン（バージョン付き取引のサポート用）。
                            example: 0
      responses:
        '200':
          description: 詳細なSolana取引データを正常に取得しました。
          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
                    description: 実行データを含む完全なSolana取引の詳細。
                    properties:
                      slot:
                        type: integer
                        description: この取引が処理されたSolanaブロックチェーンのスロット番号。
                        example: 430
                      transaction:
                        type: object
                        description: すべての取引詳細を含む包括的なSolana取引オブジェクト。
                        properties:
                          message:
                            type: object
                            description: 詳細な実行指示を含むSolana取引メッセージ。
                            properties:
                              accountKeys:
                                type: array
                                description: 取引に関与するSolanaアカウントの公開鍵のリスト。
                                items:
                                  type: string
                                  example: 3UVYmECPPMZSCqWKfENfuoTv51fTDTWicX9xmBD2euKe
                              header:
                                type: object
                                description: アクセス制御情報を含むSolana取引ヘッダーメタデータ。
                                properties:
                                  numReadonlySignedAccounts:
                                    type: integer
                                    description: 取引内の読み取り専用署名済みSolanaアカウントの数。
                                    example: 0
                                  numReadonlyUnsignedAccounts:
                                    type: integer
                                    description: 取引内の読み取り専用未署名Solanaアカウントの数。
                                    example: 3
                                  numRequiredSignatures:
                                    type: integer
                                    description: Solana取引の検証に必要な署名の数。
                                    example: 1
                              instructions:
                                type: array
                                description: Solana取引内で実行されるプログラム指示のリスト。
                                items:
                                  type: object
                                  properties:
                                    accounts:
                                      type: array
                                      description: この指示によってアクセスされるSolanaアカウントのインデックス化リスト。
                                      items:
                                        type: integer
                                        example: 1
                                    data:
                                      type: string
                                      description: Solanaプログラムに渡されるエンコードされた指示データ。
                                      example: >-
                                        37u9WtQpcm6ULa3WRQHmj49EPs4if7o9f1jSRVZpm2dvihR9C8jY4NqEwXUbLwx15HBSNcP1
                                    programIdIndex:
                                      type: integer
                                      description: この指示を処理するSolanaプログラムのインデックス。
                                      example: 4
                              recentBlockhash:
                                type: string
                                description: 取引の有効性ウィンドウのために使用される最近のSolanaブロックハッシュ。
                                example: mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B
                          signatures:
                            type: array
                            description: Solana取引を検証する暗号署名のリスト。
                            items:
                              type: string
                              example: >-
                                2nBhEBYYvfaAe16UMNqRHre4YNSskvuYgx3M6E4JP1oDYvZEJHvoPzyUidNgNX5r9sTyN1J9UxtbCXy2rqYcuyuv
                      meta:
                        type: object
                        description: Solana取引の実行メタデータおよび結果。
                        properties:
                          err:
                            oneOf:
                              - type: object
                              - type: 'null'
                            description: Solana取引が失敗した場合のエラー情報。成功した場合はnull。
                            example: null
                          fee:
                            type: integer
                            description: >-
                              Solanaラメポーツで支払われる取引手数料（1 SOL =
                              1,000,000,000ラメポーツ）。
                            example: 5000
                          innerInstructions:
                            type: array
                            description: Solana取引実行中に生成された内部命令のリスト。
                            items:
                              type: object
        '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
          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)で無料で取得できます。

````