> 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/requery-transaction.md).

# Requery Transaction

Requery / re-check a transaction status on a specific network.

**Endpoint:** `POST /transaction/requery/:network`

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

#### Path Parameters <a href="#path-parameters-3" id="path-parameters-3"></a>

| Parameter | Type   | Required | Description                                                                                                             |
| --------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------- |
| network   | string | Yes      | Network code to parse in requests. Supported: `bep20`, `erc20`, `base`, `bitcoin`, `trc20`, `xrp`, `solana`, `litecoin` |

#### Request Parameters <a href="#request-parameters-15" id="request-parameters-15"></a>

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

#### Example Request <a href="#example-request-26" id="example-request-26"></a>

```
curl -X POST https://service.roqqu.com/v1/transaction/requery/bep20 \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "tx_hash=52CjcHgQHWC1wvGFRSeJVJ18T2hV7DwPimLR13nktLMKK8PgWM99UyAazTTaDD2fkqiAqGNXA3jes7JzRNoe8buB"

```

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

Requery returns a status message based on the network checker result. Examples:

```
{
  "status": "success",
  "message": "Transaction confirmed in Block.",
  "data": null
}
```

```
{
  "status": "success",
  "message": "Transaction already credited.",
  "data": null
}
```

#### **Error Responses**

**Still pending / skipped / failed (examples):**

```
{
  "status": "fail",
  "message": "transaction not found or still pending"
}
```

```
{
  "status": "fail",
  "message": "transaction may have been skipped"
}
```

```
{
  "status": "fail",
  "message": "transaction failed"
}
```

**Unsupported network:**

```
{
  "status": "fail",
  "message": "network not supported"
}
```

**Missing tx\_hash:**

```
{
  "status": "fail",
  "message": "(tx_hash) not found in request body"
}
```

**Action failed:**

```
{
  "status": "fail",
  "message": "Action Failed"
}
```
