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

# Get transaction by hash

> Returns a specific transaction by its hash.



## OpenAPI

````yaml /api-reference/rollup-indexer/openapi.yaml get /indexer/tx/v1/txs/{tx_hash}
openapi: 3.1.0
info:
  title: Indexer API
  description: >-
    Query indexed data including transactions, blocks, NFTs, and token holders
    across Initia Stack chains.
  version: 1.0.0
servers:
  - url: https://rollytics-api-evm-1.anvil.asia-southeast.initia.xyz
    description: evm-1 (testnet)
  - url: https://rollytics-api-move-1.anvil.asia-southeast.initia.xyz
    description: move-1 (testnet)
  - url: https://rollytics-api-wasm-1.anvil.asia-southeast.initia.xyz
    description: wasm-1 (testnet)
security: []
paths:
  /indexer/tx/v1/txs/{tx_hash}:
    get:
      tags:
        - Transactions
      summary: Get transaction by hash
      description: Returns a specific transaction by its hash.
      operationId: getTransactionByHash
      parameters:
        - name: tx_hash
          in: path
          description: The transaction hash.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  tx:
                    $ref: '#/components/schemas/Tx'
        '404':
          description: Transaction not found
components:
  schemas:
    Tx:
      type: object
      properties:
        txhash:
          type: string
          description: Transaction hash.
        height:
          type: string
          description: Block height where this transaction was included.
        codespace:
          type: string
          description: Error codespace, if the transaction failed.
        code:
          type: integer
          description: Response code. `0` indicates success; non-zero indicates an error.
        data:
          type: string
          description: Hex-encoded result data.
        raw_log:
          type: string
          description: Raw log output from the transaction.
        logs:
          type: array
          description: Parsed ABCI message logs.
          items:
            type: object
        info:
          type: string
          description: Additional information.
        gas_wanted:
          type: string
          description: Gas requested by the transaction.
        gas_used:
          type: string
          description: Gas consumed by the transaction.
        tx:
          type: object
          description: The full transaction body including messages and signatures.
        timestamp:
          type: string
          description: Transaction timestamp in RFC 3339 format.
        events:
          type: array
          description: Events emitted by the transaction.
          items:
            type: object

````