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

> Monad API method that returns information about a transaction by transaction hash. eth_getTransactionByHash on Monad via Chainstack.

Monad API method that returns information about a transaction by transaction hash. This method allows you to retrieve detailed information about a specific transaction.

<Note>
  **Monad-specific behavior**: This method does not return pending transactions. It will only return transactions that have been included in a block. If you query for a transaction that is still in the mempool, the method will return `null`.
</Note>

## Parameters

* `data` — the 32-byte hash of the transaction.

## Response

* `result` — the transaction object, or `null` when no transaction was found:
  * `blockHash` — hash of the block containing this transaction
  * `blockNumber` — number of the block containing this transaction
  * `from` — address of the sender
  * `gas` — gas provided by the sender
  * `gasPrice` — gas price in wei
  * `hash` — hash of the transaction
  * `input` — the data sent along with the transaction
  * `nonce` — number of transactions made by the sender
  * `to` — address of the receiver
  * `transactionIndex` — integer of the transaction's index position
  * `value` — value transferred in wei
  * `v`, `r`, `s` — signature values

## `eth_getTransactionByHash` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const { ethers } = require("ethers");

  const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

  async function getTransaction() {
    const txHash = "0xffc7cdc354942338ee028ab1c54ef395b908d6e062ef57821e2869ef37945221";
    const tx = await provider.getTransaction(txHash);
    console.log(tx);
  }

  getTransaction();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"

  web3 = Web3(Web3.HTTPProvider(node_url))
  tx_hash = "0xffc7cdc354942338ee028ab1c54ef395b908d6e062ef57821e2869ef37945221"
  tx = web3.eth.get_transaction(tx_hash)
  print(tx)
  ```
</CodeGroup>

## Use case

A practical use case for `eth_getTransactionByHash` is retrieving transaction details for display in a DApp or for verifying transaction parameters.


## OpenAPI

````yaml openapi/monad_node_api/transaction_info/eth_getTransactionByHash.json POST /
openapi: 3.0.0
info:
  title: Monad Node API
  version: 1.0.0
  description: This is an API for interacting with a Monad node.
servers:
  - url: https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800
security: []
paths:
  /:
    post:
      tags:
        - Transactions info
      summary: eth_getTransactionByHash
      operationId: eth_getTransactionByHash
      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: eth_getTransactionByHash
                params:
                  type: array
                  items:
                    type: string
                  default:
                    - >-
                      0xffc7cdc354942338ee028ab1c54ef395b908d6e062ef57821e2869ef37945221
      responses:
        '200':
          description: The transaction information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    nullable: true

````