> For the complete documentation index, see [llms.txt](https://roqqu-api-services.gitbook.io/ras/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roqqu-api-services.gitbook.io/ras/transaction/get-transaction-by-transaction-hash.md).

# Get Transaction by Transaction Hash

Retrieve deposit transaction details by transaction hash.

**Endpoint:** `GET /transaction/deposit/:tx_hash`

**Authentication:** Required (`x-api-key` for live, `x-staging-api-key` for test)

#### **Path Parameters**

| Parameter | Type   | Required | Description                 |
| --------- | ------ | -------- | --------------------------- |
| tx\_hash  | string | Yes      | Blockchain transaction hash |

**Example Request**

```
curl -X GET https://service.roqqu.com/v1/transaction/deposit/0xdeccb101ea58b71a57ca4dc4a2dbf0887de775409a8096b05a277518e96010ce \
  -H "x-api-key: YOUR_API_KEY"
```

**Example Response (Success)**

```
{
  "status": "success",
  "message": "transaction retrieved for tx_hash: 0xdeccb101ea58b71a57ca4dc4a2dbf0887de775409a8096b05a277518e96010ce",
  "data": {
    "ref": "48291037465829103746",
    "status": 1,
    "genesis": 0,
    "email": "merchant@business.com",
    "value": 2,
    "network": "erc20",
    "token": "usdt",
    "address": "0xfa624f26737cdd712572b45bd5d5ebc9f9f124c3",
    "sender": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
    "extra": null,
    "tx_hash": "0xdeccb101ea58b71a57ca4dc4a2dbf0887de775409a8096b05a277518e96010ce",
    "output_pos": null,
    "customer": null,
    "total_received": 0,
    "created_at": "2025-12-20T20:42:28.000Z",
    "updated_at": "2025-12-21T17:45:49.000Z",
    "deleted_at": null
  }
}
```

**Error Responses**

**Not found:**

```
{
  "status": "fail",
  "message": "tx_hash details not found"
}
```

**Missing path param:**

```
{
  "status": "fail",
  "message": "tx_hash not found in params"
}
```
