> For the complete documentation index, see [llms.txt](https://saseul-gold.gitbook.io/saseul-gold-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://saseul-gold.gitbook.io/saseul-gold-docs/network-cli/dex-interface/swap.md).

# Swap

Commands used to run token swaps.&#x20;

You must specify the address of the input and output tokens, and the quantity of input tokens to swap.

```
./sg dex swap -i ${input_token_address} -o ${output_token_address} -x ${amount}
```

\- t  : Address of the input token\
\- o : Address of the output token\
\- x : Number of input tokens to swap

* **Example**

```
./sg dex swap -i dc2d6ab6d6a6000fb82931cc6ea3989629d051612701158df1214e62ac25
```
