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

# eth_getTransactionByHash | Optimism

> Optimism API method eth_getTransactionByHash retrieves information about a transaction given its hash. Chainstack Optimism reference.

Optimism API method `eth_getTransactionByHash` retrieves information about a transaction given its hash. This method is crucial for tracking transaction details and status.

## Parameters

* `transactionHash` — the hash of the transaction to retrieve.

## Response

* `result` — an object containing details about the transaction, including the block hash, block number, from address, gas used, gas price, hash, input data, nonce, to address, transaction index, value transferred, and the signature components (v, r, s).

## Use case

The `eth_getTransactionByHash` method is essential for:

* Wallets and exchanges that track transactions to update user balances and display transaction statuses.
* DApps that need to verify transaction execution or retrieve transaction inputs for processing.
* Services that monitor the Optimism network for specific transaction patterns or activities.


## OpenAPI

````yaml openapi/optimism_node_api/eth_getTransactionByHash.json POST /efb0a5eccd2caa5135eb54eba6f7f300
openapi: 3.0.0
info:
  title: eth_getTransactionByHash example
  version: 1.0.0
  description: >-
    This is an API example for eth_getTransactionByHash, a method to get
    transaction information by its hash.
servers:
  - url: https://optimism-mainnet.core.chainstack.com
security: []
paths:
  /efb0a5eccd2caa5135eb54eba6f7f300:
    post:
      tags:
        - Ethereum Operations
      summary: eth_getTransactionByHash
      operationId: getTransactionByHash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - id
                - params
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getTransactionByHash
                id:
                  type: integer
                  default: 1
                params:
                  type: array
                  default:
                    - >-
                      0xd0a7bd7d80ba09a5a627b00fe6d05cde7d45939de9b16cb96d9029da1757b59b
                  items:
                    type: string
      responses:
        '200':
          description: Transaction information for the given hash
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      blockHash:
                        type: string
                      blockNumber:
                        type: string
                      from:
                        type: string
                      gas:
                        type: string
                      gasPrice:
                        type: string
                      hash:
                        type: string
                      input:
                        type: string
                      nonce:
                        type: string
                      to:
                        type: string
                      transactionIndex:
                        type: string
                      value:
                        type: string
                      v:
                        type: string
                      r:
                        type: string
                      s:
                        type: string

````