# Swap

## How to swap

Token swaps are a simple way to trade tokens on StarkDeFi's platform. Users can swap tokens from a growing list of crypto assets across the Starknet ecosystem.

It's as simple as this:

{% embed url="<https://youtu.be/ZB-N00NUDZo>" %}
How to swap
{% endembed %}

**Step 1**: Selects an input token (ETH in this case)

<div align="left"><figure><img src="/files/UhihwOiilMOOlMeXWKmR" alt=""><figcaption><p>selecting an input token</p></figcaption></figure> <figure><img src="/files/zwu7QQsgtX4CIiAFR36R" alt=""><figcaption><p>Token list</p></figcaption></figure></div>

**Step 2**: Selects an output token (USDC in this case)

<div align="left"><figure><img src="/files/80ijoDnQ4cmj2bQNYcaa" alt=""><figcaption><p>selecting an output token</p></figcaption></figure></div>

**Step 3**: Enter amount of token you want to swap (ETH in this case)

<div align="left"><figure><img src="/files/ykGJYp0SWmWTc6JGf4R1" alt=""><figcaption><p>choosing an input token amount</p></figcaption></figure></div>

**Step 4**: The Starknet protocol calculates the number of tokens you'll receive as output.

{% hint style="info" %}
Our AMM protocol will give an instant feedback on rates and slippage.
{% endhint %}

**Step 5**:  Clicking  "Swap" to proceed, then click "Confirm Swap" to execute.

<div align="left"><figure><img src="/files/NkgX3F9OvuitSMuMdpQK" alt=""><figcaption><p>confirm swap</p></figcaption></figure> <figure><img src="/files/gqd2L1oZPMAnQsPzM4Ki" alt=""><figcaption><p>confirming swap</p></figcaption></figure></div>

**All set**: You will receive your tokens once the transaction is confirmed on L2<br>

<div><figure><img src="/files/3pSfgoK4W9zGnXLVcgAD" alt=""><figcaption><p>swap submitted</p></figcaption></figure> <figure><img src="/files/I8kvgAJp2T32itUgNgFP" alt=""><figcaption><p>swap confirm on L2</p></figcaption></figure></div>


---

# Agent Instructions: 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:

```
GET https://docs.starkdefi.com/solutions/how-to-swap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
