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

# getTransaction | Solana

<Note>
  **Archive data:** this method supports fetching historical data on [Global Nodes](/docs/global-elastic-node). See [archive methods availability](/docs/limits#solana-archive-methods-availability).
</Note>

# Solana `getTransaction` method

The Solana `getTransaction` method returns detailed information about a specific transaction using its signature.

This method provides comprehensive data about the transaction, including its status, block information, instructions, and more. It's particularly useful for applications that need to verify transaction details or display transaction information to users.

<Note>
  **Null response**

  The interactive API example is for the [mint transaction of dogwifhat (\$WIF](https://solscan.io/tx/4VAGET7z5g7ogVGmbmZ6KBtF6DS8ftLWzD65BXZWQJjwASUqLod7LhGB6mqThcqo97QcC7r7uNmBY8GwsnLAA52n)). The call will respond with null because you need an archive node to retrieve the data in the past. Chainstack does provide Solana archive nodes, so get one.
</Note>

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `signature` — the transaction signature as base-58 encoded string.
* `config` (optional) — configuration object:
  * `encoding` — encoding for the returned transaction (default: "json").
  * `maxSupportedTransactionVersion` — the maximum transaction version to return in responses.
  * `commitment` — `confirmed` or `finalized`; the commitment level `processed` is not supported here by Solana.

## Response

* `slot` — the slot this transaction was processed in.
* `transaction` — transaction object, either JSON format or encoded binary data.
* `meta` — metadata object containing detailed information about the transaction.
* `blockTime` — estimated production time of the block, as Unix timestamp.

## Use case

A common use case for `getTransaction` is in wallet applications or block explorers. These applications can use this method to fetch and display detailed information about a specific transaction, allowing users to view the status, involved accounts, and other relevant data for their transactions.


## OpenAPI

````yaml /openapi/solana_node_api/getTransaction.json POST /9de47db917d4f69168e3fed02217d15b
openapi: 3.0.0
info:
  title: getTransaction example
  version: 1.0.0
  description: This is an API example for Solana's getTransaction.
servers:
  - url: https://nd-326-444-187.p2pify.com
security: []
paths:
  /9de47db917d4f69168e3fed02217d15b:
    post:
      tags:
        - query
      summary: getTransaction
      operationId: getTransaction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: getTransaction
                params:
                  type: array
                  items:
                    anyOf:
                      - type: string
                        description: Transaction signature
                        default: >-
                          4VAGET7z5g7ogVGmbmZ6KBtF6DS8ftLWzD65BXZWQJjwASUqLod7LhGB6mqThcqo97QcC7r7uNmBY8GwsnLAA52n
                      - type: object
                        properties:
                          encoding:
                            type: string
                            default: jsonParsed
                          maxSupportedTransactionVersion:
                            type: integer
                            default: 0
                  default:
                    - >-
                      4VAGET7z5g7ogVGmbmZ6KBtF6DS8ftLWzD65BXZWQJjwASUqLod7LhGB6mqThcqo97QcC7r7uNmBY8GwsnLAA52n
                    - encoding: jsonParsed
                      maxSupportedTransactionVersion: 0
      responses:
        '200':
          description: Transaction details
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````