# Get Cross-Chain Status

You can look over the status of a cross-chain swap via this API.

## Get the status of a cross -chain transaction

<mark style="color:blue;">`GET`</mark> `endpoint/crossChainStatus`

#### Query Parameters

| Name                                              | Type   | Description                           |
| ------------------------------------------------- | ------ | ------------------------------------- |
| srcChainId<mark style="color:red;">\*</mark>      | String | ID of source chain                    |
| transactionHash<mark style="color:red;">\*</mark> | String | Transaction hash of source chain swap |

{% tabs %}
{% tab title="200: OK Done" %}

```javascript
{
  "isSuccess": true,
  "status": "Done",
  "msg": "Transaction has been completed.",
  "txHash": "<transaction hash of target chain swap>"
}
```

{% endtab %}

{% tab title="200: OK Processing" %}

```json
{
  "isSuccess": true,
  "status": "Processing",
  "msg": "Source chain transaction detected, destination chain transaction pending.",
  "txHash": null
}
```

{% endtab %}

{% tab title="200: OK Not found" %}

```json
{
  "isSuccess": false,
  "status": "Not found",
  "msg": "No transaction found in the system.",
  "txHash": null
}
```

{% endtab %}

{% tab title="200: OK Receive bridge token" %}

```json
{
  "isSuccess": true,
  "status": "Receive bridge token <symbol>",
  "msg": "Transaction reverted, bridge token received.",
  "txHash": "<transaction hash of target chain swap>"
}
```

{% endtab %}

{% tab title="200: OK Pending refund" %}

```json
{
  "success": true,
  "status": "Pending refund",
  "msg": "Transaction cannot be executed on destination chain, refund pending.",
  "txHash": null
}
```

{% endtab %}

{% tab title="200: OK Refunded" %}

```json
{
  "success": true,
  "status": "Refunded",
  "msg": "Transaction cannot be executed on destination chain, refunded.",
  "txHash": "<transaction hash of source chain refund>"
}
```

{% endtab %}
{% endtabs %}

There are six possible statuses: **Not found, Processing, Done, Receive bridge token, Pending refund, and Refunded.**

| Status                                                                                                                                                                                                                     | Msg                                                                       | Discription                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Not found**                                                                                                                                                                                                              | No transaction found in the system.                                       | No matching system record or source chain transaction detected.                                                                                                                                                       |
| **Processing**                                                                                                                                                                                                             | Source chain transaction detected, destination chain transaction pending. | System record exists; source transaction complete, destination pending.                                                                                                                                               |
| **Done**                                                                                                                                                                                                                   | Transaction has been completed.                                           | There is a system record, and the destination transaction has been completed.                                                                                                                                         |
| <p><strong>Receive bridge token (TOKEN\_NAME)</strong></p><p></p><p><strong>For example :</strong></p><ul><li>Receive bridge token (USDT)</li><li>Receive bridge token (USDC)</li><li>Receive bridge token (ETH)</li></ul> | Transaction reverted, bridge token received.                              | Due to price change over the slippage tolerance or other unforeseen issues, the transaction has been reverted on the destination chain and received bridge token instead.                                             |
| **Pending refund**                                                                                                                                                                                                         | Transaction cannot be executed on destination chain, refund pending.      | Transaction encountered an error and cannot be executed on the destination chain, we will refund the bridge token on the source chain. Once the refund transaction has been completed, it will be marked as Refunded. |
| **Refunded**                                                                                                                                                                                                               | Transaction failed on destination chain, refunded.                        | Refund completed, pool token sent to source chain sender's address.                                                                                                                                                   |
