> For the complete documentation index, see [llms.txt](https://konnadex-docs.gitbook.io/konnadex-technologies/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://konnadex-docs.gitbook.io/konnadex-technologies/withdrawals/crypto-withdrawals.md).

# 🍫 Crypto Withdrawals

The amount collected in your Konnadex account from all the incoming transactions can be withdrawn to an externally supported crypto wallet. To make crypto withdrawals, you can use our withdrawal API endpoint or our official Node JS SDK

**Crypto Withdrawal API**

`POST` [https://api.konnadex.com/v1/withdrawal](https://staging.konnadex.com/v1/withdrawal)

Headers

<table><thead><tr><th>Name</th><th width="127.66668701171875">Type</th><th>Description</th></tr></thead><tbody><tr><td>X-API-KEY*</td><td>String</td><td>Private Key</td></tr></tbody></table>

Request Body

<table><thead><tr><th width="146">Name</th><th width="123.66668701171875">Type</th><th>Description</th></tr></thead><tbody><tr><td>amount*</td><td>Number</td><td>The amount you want to send out</td></tr><tr><td>address*</td><td>String</td><td>Wallet address of the recipient</td></tr><tr><td>blockchainId*</td><td>String</td><td>The blockchain network you are sending to</td></tr><tr><td>assetId*</td><td>String</td><td>The Token being sent sent e.g USDT, CNGN</td></tr></tbody></table>

200: OK Success  response 400: Bad Request Error response

To initiate a crypto transfer using cURL with the provided API, here is an example request:

```bash
curl --request POST \
     --url https://api.konnadex.com/v1/withdrawal \
     --header 'content-type: application/json' \
     --header 'x-api-key: YOUR_SECRET_KEY' \
     --data '
{
  "amount": 100,
  "address": "0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22",
  "blockchainId": "BSC",
  "assetId": "USDT"
}'
```

**Note:**

* Replace `YOUR_SECRET_KEY` with your actual API key.
* Replace `0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22` with the recipient's wallet address.
* Ensure the `blockchainId` is set to `"BSC"` for Binance Smart Chain.
* The `assetId` determines the cryptocurrency, e.g., `USDT`.

```javascript
{
    "message": "Crypto transfer initiated successfully",
    "status": "success",
    "statusCode": 200
}
```

**Important things to note**

* The `Blockchain` field must be `"Binance Smart Chain"`.
* The `coin` field must either be "USDT",  "CNGN".

{% hint style="info" %}
We support the Binance SmartChain, for withdrawals at the moment. We will add more networks in the future.[<br>](https://konnadex.gitbook.io/konnadex-documentation/withdrawals)
{% endhint %}

**Get All Withdrawal API**

`GET` [https://api.konnadex.com/v1/withdrawal](https://staging.konnadex.com/v1/withdrawal)

Headers

<table><thead><tr><th>Name</th><th width="127.66668701171875">Type</th><th>Description</th></tr></thead><tbody><tr><td>X-API-KEY*</td><td>String</td><td>Private Key</td></tr></tbody></table>

Request Body

| Name      | Type      | Description                                       |
| --------- | --------- | ------------------------------------------------- |
| page      | number    | Page number, defaults to 1 (≥ 1).                 |
| limit     | number    | Number of records per page, defaults to 20 (≥ 1). |
| status    | string    | Current status of the withdrawal.                 |
| startDate | date-time | The start date for the query.                     |
| endDate   | date-time | The end date for the query.                       |

200: OK Success  response 400: Bad Request Error response

```bash
curl --request GET \
     --url 'https://api.konnadex.com/v1/withdrawal?page=1&limit=20'
```
