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

> 확인된 거래에 대한 거래 세부 정보를 반환합니다.

## Request Parameters

<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 ko/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 lamports 단위로 지급된 거래 수수료입니다 (1 SOL =
                              1,000,000,000 lamports).
                            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)에서 무료로
        받을 수 있습니다.

````