> 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-status-by-transaction-hash.md).

# Get Transaction Status by Transaction Hash

Retrieve deposit transaction status fields by transaction hash.

**Endpoint:** `GET /transaction/status/: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/status/0xdeccb101ea58b71a57ca4dc4a2dbf0887de775409a8096b05a277518e96010ce \
  -H "x-api-key: YOUR_API_KEY"
```

#### **Example Response (Success)**

```
{
  "status": "success",
  "message": "transaction retrieved for txhash: 0xdeccb101ea58b71a57ca4dc4a2dbf0887de775409a8096b05a277518e96010ce",
  "data": {
    "status": 1,
    "email": "merchant@business.com",
    "value": 2,
    "network": "erc20"
  }
}
```

`network` is the network code to parse (e.g. `erc20`).

#### **Error Responses**

**Not found:**

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

**Missing path param:**

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