> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# getTransaction

> Runs the Solana RPC `getTransaction` method.



## OpenAPI

````yaml gettransaction post /
openapi: 3.1.0
info:
  title: Solana RPC
  version: 1.0.0
  description: Solana RPC HTTP method reference.
servers:
  - url: https://rpc-mainnet.solanatracker.io
    description: Mainnet RPC endpoint
security: []
paths:
  /:
    post:
      summary: Run `getTransaction`
      description: Runs the Solana RPC `getTransaction` method.
      operationId: gettransaction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  allOf:
                    - type: string
                      enum:
                        - '2.0'
                      description: The JSON-RPC protocol version.
                      example: '2.0'
                      default: '2.0'
                id:
                  allOf:
                    - type: string
                      description: A unique identifier for the request.
                      example: '1'
                      default: '1'
                method:
                  allOf:
                    - type: string
                      enum:
                        - getTransaction
                      description: The name of the RPC method to invoke.
                      example: getTransaction
                      default: getTransaction
                params:
                  allOf:
                    - type: array
                      description: >-
                        Parameters for querying a Solana transaction by
                        signature.
                      default:
                        - >-
                          5u7iHLbXgUcnK7LwcmkheG1m4uVPNqtnujLy8PLjtdJu9WxaUTTg2u9d7ny6N5gRvPURTpdRnLCA9RQ4crZzg3rx
                      items:
                        oneOf:
                          - type: string
                            description: >-
                              Solana transaction signature as a base-58 encoded
                              string for lookup.
                            example: >-
                              5u7iHLbXgUcnK7LwcmkheG1m4uVPNqtnujLy8PLjtdJu9WxaUTTg2u9d7ny6N5gRvPURTpdRnLCA9RQ4crZzg3rx
                          - type: string
                            description: >-
                              Encoding format for the returned Solana
                              transaction data.
                            enum:
                              - json
                              - jsonParsed
                              - base64
                              - base58
                            example: json
                          - type: object
                            description: >-
                              Advanced configuration options for Solana
                              transaction retrieval.
                            properties:
                              commitment:
                                type: string
                                description: >-
                                  Blockchain commitment level for transaction
                                  finality verification.
                                enum:
                                  - confirmed
                                  - finalized
                                example: finalized
                              maxSupportedTransactionVersion:
                                type: integer
                                description: >-
                                  Maximum Solana transaction version to return
                                  in responses (for versioned transaction
                                  support).
                                example: 0
              required:
                - jsonrpc
                - id
                - method
                - params
            examples:
              example:
                value:
                  jsonrpc: '2.0'
                  id: db16f277-1a22-41ff-9f85-f37e2cd77900
                  method: getTransaction
                  params:
                    - >-
                      5XXN7L7cMGYTvckcaNeTXxhJgxeT1JTa9auwa2yXCFR1NXzwXrXNAWx4SaAw48S5186VzvXiXVEsWJu1WFR5AAmg
                    - commitment: finalized
      responses:
        '200':
          description: Successfully retrieved the detailed Solana transaction data.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                  result:
                    allOf:
                      - type: object
                        description: >-
                          Complete Solana transaction details including
                          execution data.
                        properties:
                          slot:
                            type: integer
                            description: >-
                              Solana blockchain slot number when this
                              transaction was processed.
                            example: 235157119
                          transaction:
                            type: object
                            description: >-
                              Comprehensive Solana transaction object with all
                              transaction details.
                            properties:
                              message:
                                type: object
                                description: >-
                                  Solana transaction message containing detailed
                                  execution instructions.
                                properties:
                                  accountKeys:
                                    type: array
                                    description: >-
                                      List of Solana account public keys
                                      involved in the transaction.
                                    items:
                                      type: string
                                      example: >-
                                        121k79rjdDy4QRuSykdG1Dw7pYCZSzKYrvs7RDKZTf1h
                                  header:
                                    type: object
                                    description: >-
                                      Solana transaction header metadata with
                                      access control information.
                                    properties:
                                      numReadonlySignedAccounts:
                                        type: integer
                                        description: >-
                                          Number of read-only signed Solana
                                          accounts in the transaction.
                                        example: 0
                                      numReadonlyUnsignedAccounts:
                                        type: integer
                                        description: >-
                                          Number of read-only unsigned Solana
                                          accounts in the transaction.
                                        example: 3
                                      numRequiredSignatures:
                                        type: integer
                                        description: >-
                                          Number of required signatures for Solana
                                          transaction validation.
                                        example: 1
                                  instructions:
                                    type: array
                                    description: >-
                                      List of program instructions executed
                                      within the Solana transaction.
                                    items:
                                      type: object
                                      properties:
                                        accounts:
                                          type: array
                                          description: >-
                                            Indexed list of Solana accounts accessed
                                            by this instruction.
                                          items:
                                            type: integer
                                            example: 1
                                        data:
                                          type: string
                                          description: >-
                                            Encoded instruction data passed to the
                                            Solana program.
                                          example: >-
                                            37u9WtQpcm6ULa3WRQHmj49EPs4if7o9f1jSRVZpm2dvihR9C8jY4NqEwXUbLwx15HBSNcP1
                                        programIdIndex:
                                          type: integer
                                          description: >-
                                            Index of the Solana program that
                                            processes this instruction.
                                          example: 4
                                  recentBlockhash:
                                    type: string
                                    description: >-
                                      Recent Solana blockhash used for
                                      transaction validity window.
                                    example: >-
                                      mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B
                              signatures:
                                type: array
                                description: >-
                                  List of cryptographic signatures validating
                                  the Solana transaction.
                                items:
                                  type: string
                                  example: >-
                                    5XXN7L7cMGYTvckcaNeTXxhJgxeT1JTa9auwa2yXCFR1NXzwXrXNAWx4SaAw48S5186VzvXiXVEsWJu1WFR5AAmg
                          meta:
                            type: object
                            description: Solana transaction execution metadata and results.
                            properties:
                              err:
                                oneOf:
                                  - type: object
                                  - type: 'null'
                                description: >-
                                  Error information if Solana transaction
                                  failed; null if successful.
                                example: null
                              fee:
                                type: integer
                                description: >-
                                  Transaction fee paid in Solana lamports (1 SOL
                                  = 1,000,000,000 lamports).
                                example: 5000
                              innerInstructions:
                                type: array
                                description: >-
                                  List of inner instructions generated during
                                  Solana transaction execution.
                                items:
                                  type: object
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    id: db16f277-1a22-41ff-9f85-f37e2cd77900
                    result:
                      slot: 235157119
                      transaction:
                        message:
                          accountKeys:
                            - 121k79rjdDy4QRuSykdG1Dw7pYCZSzKYrvs7RDKZTf1h
                          header:
                            numReadonlySignedAccounts: 0
                            numReadonlyUnsignedAccounts: 3
                            numRequiredSignatures: 1
                          instructions:
                            - accounts:
                                - 1
                              data: >-
                                37u9WtQpcm6ULa3WRQHmj49EPs4if7o9f1jSRVZpm2dvihR9C8jY4NqEwXUbLwx15HBSNcP1
                              programIdIndex: 4
                          recentBlockhash: mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B
                        signatures:
                          - >-
                            5XXN7L7cMGYTvckcaNeTXxhJgxeT1JTa9auwa2yXCFR1NXzwXrXNAWx4SaAw48S5186VzvXiXVEsWJu1WFR5AAmg
                      meta:
                        err: null
                        fee: 5000
                        innerInstructions:
                          - {}
      security:
        - ApiKeyQuery: []
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````