> For the complete documentation index, see [llms.txt](https://docs.stonkfun.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stonkfun.bot/using-stonkfunbot/swaps.md).

# Swaps

Swaps buy or sell a StonkFun token from your wallet, routed through a Solana DEX aggregator and bounded by the same transaction checks as a launch.

## The flow

Swaps follow the same loop as everything else, using swap-specific language:

**Quote → Review → Confirm → Execute → Verify**

A quote shows:

* the exact amount you'll pay and receive,
* the minimum you'll receive after slippage,
* price impact,
* the fee, and
* the route the swap will take.

## Quotes expire

A quote is only honored while it's fresh. An old quote is refused rather than silently reused at a stale price — asking again gets you a current one.

Nothing is signed, and nothing leaves your wallet, until you confirm that exact quote.

## Scope

This describes what the current release actually supports. It doesn't promise assets, venues, or chains beyond what you're quoted in the moment — if a route or a token isn't offered, it isn't supported yet.


---

# 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.stonkfun.bot/using-stonkfunbot/swaps.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.
