> ## 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 EVM transaction by hash

> Returns a specific EVM transaction by its hash. Only available on EVM chains.



## OpenAPI

````yaml /api-reference/rollup-indexer/openapi.yaml get /indexer/tx/v1/evm-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/evm-txs/{tx_hash}:
    get:
      tags:
        - EVM Transactions
      summary: Get EVM transaction by hash
      description: >-
        Returns a specific EVM transaction by its hash. Only available on EVM
        chains.
      operationId: getEvmTransactionByHash
      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/EvmTx'
        '404':
          description: Transaction not found or EVM routes not available
components:
  schemas:
    EvmTx:
      type: object
      properties:
        blockHash:
          type: string
          description: Hash of the block containing this transaction.
        blockNumber:
          type: string
          description: Block number (hex-encoded).
        contractAddress:
          type: string
          nullable: true
          description: >-
            Address of the contract created, if this was a contract creation
            transaction.
        cumulativeGasUsed:
          type: string
          description: Total gas used in the block up to and including this transaction.
        effectiveGasPrice:
          type: string
          description: Effective gas price paid (hex-encoded).
        from:
          type: string
          description: Sender address.
        gasUsed:
          type: string
          description: Gas consumed by this transaction.
        logs:
          type: array
          description: Event logs emitted during execution.
          items:
            $ref: '#/components/schemas/EvmLog'
        logsBloom:
          type: string
          description: Bloom filter for the logs.
        status:
          type: string
          description: '`0x1` for success, `0x0` for failure.'
        to:
          type: string
          description: Recipient address.
        transactionHash:
          type: string
          description: Transaction hash.
        transactionIndex:
          type: string
          description: Index of this transaction in the block.
        type:
          type: string
          description: Transaction type.
    EvmLog:
      type: object
      properties:
        address:
          type: string
          description: Contract address that emitted the log.
        topics:
          type: array
          description: Indexed event topics.
          items:
            type: string
        data:
          type: string
          description: Non-indexed event data (hex-encoded).
        blockNumber:
          type: string
          description: Block number (hex-encoded).
        transactionHash:
          type: string
          description: Transaction hash.
        transactionIndex:
          type: string
          description: Transaction index in the block.
        blockHash:
          type: string
          description: Block hash.
        logIndex:
          type: string
          description: Log index in the block.
        removed:
          type: boolean
          description: Whether the log was removed due to a chain reorganization.

````