> For the complete documentation index, see [llms.txt](https://docs.lumia.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lumia.org/use-lumia/token/token-swap-guide-smart-contract.md).

# Token swap guide smart contract

**Who this is for:** developers and technical LUMIA holders who would rather call a swap contract directly than use a web interface. For the UI-based path, see [Token swap guide (UI)](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/use-lumia/token/token-swap-guide-ui).

### Verify before you call a contract

{% hint style="warning" %}
Calling the wrong contract, or the right contract with the wrong parameters, can burn gas, fail silently, or send a token approval to an address that never returns it. Always get contract addresses from [Contract addresses](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/contract-addresses) rather than an unverified source.
{% endhint %}
