# How Swaps Work

A swap is how users on a blockchain trade one token for another. A straight token to token trade without the use of leverage is called a spot swap/trade as the underlying token is the one being traded.&#x20;

In DeFi, a user signs a transaction through their wallet for their trade to execute on the desired platform. This transaction propagates throughout the entire blockchain worldwide and after a short delay, the trade is confirmed and you have the results of your trade in your wallet. An advantage here is that the funds are transferred immediately without waiting for the lag time that is present in traditional markets. In addition, Solana does this at very low costs (sub cent), thus making it more efficient than many money transmitting networks, especially internationally.&#x20;


---

# 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://titan-exchange.gitbook.io/titan/codex-of-knowledge/how-swaps-work.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.
