# How to Swap with Liberty DEX

#### Step 1: Connect Wallet

Access the [Liberty DEX](https://dex.libertyswap.finance/) interface and connect a supported wallet.

<figure><img src="/files/7uKz03EjdDKyctj3pOrc" alt=""><figcaption></figcaption></figure>

#### Step 2: Select Assets

Choose the asset to swap from and the asset to receive.

Supported tokens can be selected from the available token list. Availability depends on supported assets and accessible liquidity within the execution network.

<figure><img src="/files/cuPPLF81mPK2Mh303xd7" alt=""><figcaption></figcaption></figure>

#### Step 3: Enter Amount

Specify the amount to swap, users may input the amount to send.

The interface will automatically calculate the corresponding value based on current quotes.

An option to use the maximum available balance may also be provided.

#### Step 4: Review and Initiate Swap

Review the quoted price and execution details, then proceed to initiate the swap.

<figure><img src="/files/06NpVkgSxL7rvNU83bfl" alt=""><figcaption></figcaption></figure>

#### Step 5: Approve Token Access

If the selected token has not been previously approved, an approval transaction is required to allow the protocol to interact with the asset.

This step requires an on-chain transaction and associated network fees.

#### Step 6: Sign Order

After approval, the user signs an off-chain message representing the swap intent.

This signature authorizes the execution of the swap under predefined parameters and does not require network fees.

<figure><img src="/files/6qh84hDiz9IBm7otgTib" alt=""><figcaption></figcaption></figure>

#### Step 7: Order Submission

Once signed, the order is submitted to the Liberty DEX execution network.

Independent executors evaluate the order and attempt to fulfill it by sourcing liquidity and submitting the corresponding on-chain transaction.

#### Step 8: Execution and Settlement

If an executor successfully fills the order, the swap is completed and the output assets are delivered to the user’s wallet.

Execution status is reflected in the interface once the transaction is confirmed on-chain.

<figure><img src="/files/Scf4ONNz8fwGMfGVGkBG" alt=""><figcaption></figcaption></figure>

### Additional Notes

**Native asset handling**

When swapping native assets (such as PLS, WPLS), an additional transaction may be required to convert the asset into its wrapped/unwrapped equivalent before execution. This step incurs network fees.

<figure><img src="/files/PmC9rU1jTUSH2vArHe7Y" alt=""><figcaption></figcaption></figure>


---

# 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.libertyswap.finance/liberty-dex/how-to-swap-with-liberty-dex.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.
