> For the complete documentation index, see [llms.txt](https://docs.sherpa.trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sherpa.trade/sherpa-trade-automation/swap/smart-swaps.md).

# Smart Swaps

Users can conduct gas free, approval-less, swaps via their Sherpa Account directly. &#x20;

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2Fuvzi5Q9zRbOoJav0iW0x%2Fimage.png?alt=media&amp;token=59dc3535-6935-45ee-a248-6064b2edd6d7" alt=""><figcaption><p>In the input token selection menu you can toggle between your Wallet (EOA) and your Sherpa Account.</p></figcaption></figure>

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FhHJKKLwgtCwPjbrZOp3L%2Fimage.png?alt=media&amp;token=a376833e-0a6d-4264-b05f-3001f20bb463" alt=""><figcaption><p>In the output token selection menu you can also toggle between your Wallet (EOA) and your Sherpa Account.</p></figcaption></figure>

When using Sherpa Accounts as the source no approval transactions will be necessary.  Simply fetch a quote and execute the trade in one transaction.

Swapping between a users connected wallet (EOA) and their Sherpa Account is also possible by setting the source and destinations according to their needs.  This effective allows a user to deposit or withdraw assets while they swap.

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FgSS7usLzyiFmndvtTqFi%2Fimage.png?alt=media&amp;token=0da139eb-95ef-48e5-86ec-8d24a84ec3cb" alt=""><figcaption><p>At the bottom of the swap component there is a summary of the transaction path.</p></figcaption></figure>

#### Possible Swap Types

{% tabs %}
{% tab title="EOA → EOA" %}
**Standard wallet to wallet swap**

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FzlQD1Rz7xoL1C5MFc4AU%2Fimage.png?alt=media&amp;token=53a402d3-0fcb-483f-b5ec-28109bf2927a" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="SA → SA" %}
**Sherpa Account to Sherpa Account swap**

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FC1fm5tgxiwhnecEbVWkC%2Fimage.png?alt=media&amp;token=b2042cb9-bf18-4e9d-9d90-e0025dc252d8" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="EOA → SA" %}
**Swapping while depositing into your Sherpa Account**

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FsMm5jjXiazsfiFRG7Vvk%2Fimage.png?alt=media&amp;token=0091263a-0fbe-4f0d-93df-0800ae79dffe" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="SA → EOA" %}
**Swapping while withdrawing into your wallet**

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FNF2BMKLnrPdSuWDYlEP5%2Fimage.png?alt=media&amp;token=0d8c2ab6-3db3-4543-90fd-da8a7527e547" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Note that once you add a quantity to the input field it will lock the source until you clear the quantity.
{% endhint %}
