> ## 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_getRawTransactionByHash | Hyperliquid EVM

> Returns the raw transaction data by its hash. Use this method to retrieve the RLP-encoded raw transaction when you have the transaction hash.

<Info>
  This method is available on Chainstack. Not all Hyperliquid methods are available on Chainstack, as the open-source node implementation does not support them yet — see [Hyperliquid methods](/docs/hyperliquid-methods) for the full availability breakdown.
</Info>

Returns the raw transaction data by its hash. Use this method to retrieve the RLP-encoded raw transaction when you have the transaction hash.

## Parameters

* `transactionHash` (string, required) — The 32-byte hash of the transaction

## Returns

Returns the raw transaction data as a hex-encoded string, or `null` if the transaction is not found.

The raw transaction data is RLP-encoded and includes all transaction fields in their original binary format.

<Note>
  Raw transaction data can be decoded using RLP decoding libraries to extract individual transaction fields like nonce, gas price, gas limit, recipient, value, and signature components.
</Note>

## Example request

<CodeGroup>
  ```shell Shell theme={"system"}
  curl -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getRawTransactionByHash","params":["0x66112ff0438f84686c8003f3a855057694c9018f07905c0e15f2f20f4dd0791a"],"id":1}' \
    https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  w3 = Web3(Web3.HTTPProvider("YOUR_CHAINSTACK_ENDPOINT"))

  # eth_getRawTransactionByHash has no high-level helper, so call it directly
  response = w3.provider.make_request(
      "eth_getRawTransactionByHash",
      ["0x66112ff0438f84686c8003f3a855057694c9018f07905c0e15f2f20f4dd0791a"],
  )
  print(response["result"])
  ```

  ```javascript ethers.js theme={"system"}
  import { JsonRpcProvider } from "ethers";

  const provider = new JsonRpcProvider("YOUR_CHAINSTACK_ENDPOINT");

  // eth_getRawTransactionByHash has no high-level helper, so use send()
  const rawTx = await provider.send("eth_getRawTransactionByHash", [
    "0x66112ff0438f84686c8003f3a855057694c9018f07905c0e15f2f20f4dd0791a",
  ]);
  console.log(rawTx);
  ```

  ```typescript viem theme={"system"}
  import { createPublicClient, http } from "viem";

  const client = createPublicClient({
    transport: http("YOUR_CHAINSTACK_ENDPOINT"),
  });

  // eth_getRawTransactionByHash has no high-level action, so use request()
  const rawTx = await client.request({
    method: "eth_getRawTransactionByHash",
    params: ["0x66112ff0438f84686c8003f3a855057694c9018f07905c0e15f2f20f4dd0791a"],
  });
  console.log(rawTx);
  ```
</CodeGroup>

<Note>
  **Use your own endpoint in your code.** The code examples use a placeholder Chainstack endpoint (YOUR\_CHAINSTACK\_ENDPOINT) — replace it with your own Hyperliquid node endpoint from the [Chainstack console](https://console.chainstack.com/). The curl above uses a shared public endpoint for quick checks only; do not use it in production.
</Note>

## Use cases

* **Transaction broadcasting** — Re-broadcast transactions to other networks
* **Forensic analysis** — Analyze transaction structure and encoding
* **Cross-chain bridges** — Verify transaction format across different networks
* **Development tools** — Debug transaction encoding and decoding
* **Archive services** — Store transactions in their original format
* **Signature verification** — Extract and verify transaction signatures


## OpenAPI

````yaml openapi/hyperliquid_node_api/hyperevm/evm_eth_get_raw_transaction_by_hash.json post /evm
openapi: 3.0.0
info:
  title: Hyperliquid EVM API - eth_getRawTransactionByHash
  version: 1.0.0
servers:
  - url: >-
      https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274
security: []
paths:
  /evm:
    post:
      summary: eth_getRawTransactionByHash
      description: Returns the raw transaction data by its hash.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - params
                - id
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  default: '2.0'
                  description: JSON-RPC version
                method:
                  type: string
                  enum:
                    - eth_getRawTransactionByHash
                  default: eth_getRawTransactionByHash
                  description: The RPC method name
                params:
                  type: array
                  description: 'Parameters: [transactionHash]'
                  default:
                    - >-
                      0x66112ff0438f84686c8003f3a855057694c9018f07905c0e15f2f20f4dd0791a
                id:
                  type: integer
                  default: 1
                  description: Request identifier
            example:
              jsonrpc: '2.0'
              method: eth_getRawTransactionByHash
              params:
                - >-
                  0x66112ff0438f84686c8003f3a855057694c9018f07905c0e15f2f20f4dd0791a
              id: 1
      responses:
        '200':
          description: Successful response with raw transaction data
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: JSON-RPC version
                  id:
                    type: integer
                    description: Request identifier
                  result:
                    type: string
                    description: >-
                      Raw transaction data as hex-encoded string, or null if not
                      found
              example:
                jsonrpc: '2.0'
                id: 1
                result: >-
                  0xf86c0185037e11d6008252089433c3321b162edac1fdbb53af2962b2940c07e334880de0b6b3a76400008026a01234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdefa0abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab

````