# Transactions

### 1. Create Transaction

In the Basic SDK, you could get the transaction via swap endpoint. Please check this link for more information on this:

### 2. Check Transaction Status

After that user signed a transaction on his/her wallet you should call this endpoint periodically to see what's the status of that transaction.

{% tabs %}
{% tab title="Typescript" %}

```typescript
const transaction = await rangoClient.status({
    requestId: swapResponse.requestId,
    txId: 'TX HASH RETURENED BY WALLET',
})
```

{% endtab %}

{% tab title="cURL" %}

```bash
curl 'https://api.rango.exchange/basic/status?apiKey=YOUR_API_KEY' \
  -H 'content-type: application/json;charset=UTF-8' \
  -H 'x-rango-id: USER_RANDOM_UUID' \
  -H 'origin: https://app.rango.exchange' \
  --data-raw '{"txId":"TX HASH RETUREN BY WALLET","requestId":"BEST ROUTE REQUEST ID"}' \
  --compressed
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
This endpoint is not suitable for checking approval and it is only for the original transaction.&#x20;
{% endhint %}

###
