> For the complete documentation index, see [llms.txt](https://learn.layerswap.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.layerswap.io/api/api-integration/deprecated-v1-api-reference/create-fast-swap.md).

# Create Fast Swap

This endpoint provides the ability to create a swap with as few parameters as possible - destination network, asset and amount. Then, the endpoint will return all the possible source networks which can be used for transferring the funds to the destination network. The returned source networks are tracked for a possible deposit.&#x20;

<mark style="color:green;">`POST`</mark> `https://api.layerswap.io/api/swaps/fast`

Create fast swap

#### Query Parameters

| Name       | Type   | Description                                                                     |
| ---------- | ------ | ------------------------------------------------------------------------------- |
| client\_id | String | Optionally can be passed to the application [Client ID](/api/partner-setup.md). |

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json |

#### Request Body

| Name                                                   | Type   | Description                                                                                                                                                     |
| ------------------------------------------------------ | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| destination\_address<mark style="color:red;">\*</mark> | String | The destination network address, where the user will receive the funds.                                                                                         |
| destination\_asset<mark style="color:red;">\*</mark>   | String | The swap currency name. [See available assets](broken://pages/OP5GKjebwv1aQjx1fVNx).                                                                            |
| destination\_network<mark style="color:red;">\*</mark> | String | The supported blockchain network name, where the funds should be sent by the user.[ See available values.](/api/data/supported-platforms/supported-networks.md) |

{% tabs %}
{% tab title="200: OK Indicating that the pipe has been created" %}

{% endtab %}
{% endtabs %}

#### Raw request

```bash
curl -X 'POST' \
  'https://localhost:9669/api/swaps/fast?clientId=f10853b323b94e10b2d9a2cddbe105a6' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "destination_address": "{YOUR_DESTINATION_ADRESS}",
  "destination_network": "ARBITRUM_GOERLI",
  "destination_asset": "ETH"
}'
```

#### Raw response

```json
{
  "data": [
    {
      "source_address": "0x5368029018cb9f7d7d92c51d19d86835573c7679",
      "networks": [
        {
          "name": "ETHEREUM_GOERLI",
          "network_currencies": [
            {
              "asset": "ETH",
              "contract": null,
              "min_amount": 0.00073,
              "precision": 6
            }
          ]
        }
      ]
    },
    {
      "source_address": "0xfae8acb3b8243303565636aeb336c985dba9a552",
      "networks": [
        {
          "name": "IMMUTABLEX_GOERLI",
          "network_currencies": [
            {
              "asset": "ETH",
              "contract": null,
              "min_amount": 0.000121,
              "precision": 6
            }
          ]
        }
      ]
    }
  ],
  "error": null
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://learn.layerswap.io/api/api-integration/deprecated-v1-api-reference/create-fast-swap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
