> For the complete documentation index, see [llms.txt](https://docs.bitcoinq.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bitcoinq.xyz/basic-tutorial/swap-token.md).

# Swap Token

This guide will provide an overview of how to swap tokens on different decentralized exchanges (DEXs) such as Serum DEX on Solana, PancakeSwap on Binance Smart Chain, and Uniswap on Ethereum.

## Overview

Swapping tokens involves the following general steps across various platforms:

1. **Access the DEX**: Open the DEX platform on your browser or app.
2. **Connect Your Wallet**: Link your cryptocurrency wallet to the DEX.
3. **Select Tokens**: Choose the token you want to swap and the token you want to receive.
4. **Enter Amount**: Specify the amount of tokens you wish to swap.
5. **Review Transaction**: Check the transaction details including exchange rates and fees.
6. **Approve and Swap**: Confirm the transaction and execute the swap.
7. **Verify Swap**: Verify the receipt of tokens in your wallet.

To get started, select one of the detailed tutorials below based on the DEX platform you wish to use:

## Tutorials

1. [How to Swap Tokens on Solana Using Serum DEX](/basic-tutorial/swap-token/how-to-swap-tokens-on-solana-using-serum-dex.md)
2. [How to Swap Tokens on PancakeSwap](/basic-tutorial/swap-token/how-to-swap-tokens-on-pancakeswap.md)
3. [How to Swap Tokens on Uniswap](/basic-tutorial/swap-token/how-to-swap-tokens-on-uniswap.md)

Each tutorial will guide you through the specific steps required to swap tokens on the chosen DEX platform.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.bitcoinq.xyz/basic-tutorial/swap-token.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
