# eth_getTransactionByHash - Etherlink RPC Method

Returns the information about a transaction by transaction hash on Etherlink.

## When to Use This Method

Read the transaction recorded in block 4,162,737 using its hash.

## Request Parameters

- `transactionHash` (`DATA, required`): 32-byte transaction hash.

## Request Example

```json
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "eth_getTransactionByHash",
  "params": [
    "0x0dc908c545bfefe9fd5b5198e39c1af2b3166e5e556a51f2efd55c4a449fa587"
  ]
}
```

## Response Fields

This method returns no documented fields.

## Successful Response

```json
{
  "jsonrpc": "2.0",
  "result": {
    "blockHash": "0x8fccc43a1a50e7888b945a82c2c239908ead9ee4720c30774e9f58a2c40a3ad1",
    "blockNumber": "0x3f84b1",
    "from": "0x5d66ec78664f4a0b0929a41270316a6cd4d8bd4b",
    "gas": "0x4c4b40",
    "gasPrice": "0x3b9aca00",
    "hash": "0x0dc908c545bfefe9fd5b5198e39c1af2b3166e5e556a51f2efd55c4a449fa587",
    "input": "0xc14c9204000000000000000000000000000000000000000000000000000001930619e2a045544800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004176c0e69c01930619e2a00000002000000109c886e2a7ed5cf552ceb4d68ffb852fc04e0a01055016552a1810caffa1ee52702b8cccd149c9d6a61ad37b759e3f4be464d8cdd01f52c29055d88485e489fe1b45544800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004176c0e69c01930619e2a00000002000000151bfef864077e299879f09ddde98a3bd5e18b0f76038ef2f159fa841e2dbe093317ed9bfb4134f6a064de1c7f66e1f0dd64d13233d3b1907958583168a8ba4631b4254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006ce630dfee501930619e2a0000000200000016a56b8ce99eedd20dd230dc9cea28ccb27a83455c5a058750150db945dd08f532e8e0495bf5f2b0f5f72c2f2d898391852363a219b41f964964050720149461e1b4254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006ce62febb8d01930619e2a0000000200000010a78ef21ed2dbb7d94f8cbf46be9e4413ad64dc39482d0b9aec50ea48fa64123583775a5f9e065ccfe8867ee34314f0c7d2dfa79c3688d68658be2ea7e567d531c58545a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003db82ea01930619e2a0000000200000013f08d6d551abc925e12f0e394776bf39f6b525cf7da28a2e14389c55ed8e323127743b2c86b02c2860174c2c8182675c40327813d67ee846a0886919ac3e89c31c58545a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003db82ea01930619e2a000000020000001dbecf87431878794f047b813cdada29af88541ce656caa4d95008910970eed91431189604d3f9c4fb3a9bc629bf882171dd1be4e058ca9ea07e43036954bfeb11b00063137333039373432303132303623302e352e3123646174612d7061636b616765732d77726170706572000029000002ed57011e0000",
    "nonce": "0x1123fd",
    "to": "0xa2cca359c43839040cf3d230deb1689ab8db2dac",
    "transactionIndex": "0x0",
    "value": "0x0",
    "v": "0x14e76",
    "r": "0x98d3b2e5cff6d0a0facc6a13a2df8626aaccf1573d29e7b1d18521ba470d3a08",
    "s": "0x854b2712ea3568c5da1d7ab51d45c906e5f7f32b671bf69d56a03b2a1c7c9d9"
  },
  "id": 2
}
```

## Best Practices

Keep the recorded block height and address together when reproducing a historical example. Preserve RPC errors instead of replacing them with empty results.

## Code Examples

```bash
curl -X POST "https://api-etherlink-mainnet.n.dwellir.com/YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"jsonrpc":"2.0","id":2,"method":"eth_getTransactionByHash","params":["0x0dc908c545bfefe9fd5b5198e39c1af2b3166e5e556a51f2efd55c4a449fa587"]}'
```
