# 如何兑换代币

在 Byreal 上兑换代币只需几次点击。Byreal 会自动通过多种模式选择最佳价格和执行路径，包括原生 CLMM 资金池、链下 RFQ 报价以及 Raydium、Orca、Meteora 等第三方聚合器。

## 分步指南：您的第一笔兑换

{% stepper %}
{% step %}

### 步骤 1：连接钱包

访问 <https://byreal.io/，连接您的> Solana 钱包（Phantom、Solflare、Backpack 或其他兼容钱包）。
{% endstep %}

{% step %}

### 步骤 2：选择代币

选择您要卖出的代币（输入）和您要买入的代币（输出）。可通过名称、代码或粘贴代币合约（mint）地址进行搜索。
{% endstep %}

{% step %}

### 步骤 3：输入金额

输入您要买入或卖出的金额。Byreal 会立即计算最优路由并显示预期输出金额。
{% endstep %}

{% step %}

### 步骤 4：查看交易详情

确认前，请查看预期输出、网络费用、价格影响和滑点容忍度。这些信息在兑换界面中清晰显示。
{% endstep %}

{% step %}

### 步骤 5：确认并兑换

点击「买入」或「卖出」按钮，在钱包中批准交易。确认后，交易提交至 Solana 网络，链上完成后您将收到通知。
{% endstep %}
{% endstepper %}

## Byreal 如何找到最佳价格

Byreal 的双执行引擎实时评估多个流动性来源，并通过最优路径路由您的交易：

* **链上执行（AMM）：** 交易通过 Byreal 原生 CLMM 资金池和聚合的外部 AMM（Raydium、Orca、Meteora）路由。您需支付资金池特定的兑换手续费（如 0.01%、0.10%、0.20%）加上少量 Solana 网络费用。
* **链下执行（RFQ）：** 对于支持的交易对和交易规模，Byreal 直接连接链下做市商和 CEX 订单簿。RFQ 报价提供零价格影响、零滑点且无 Gas 费用，您获得确定的保证价格。
* **外部聚合：** Byreal 还从领先的 Solana AMM 获取价格，确保最深的流动性和最佳可用汇率。


---

# 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://docs.byreal.io/zh-my/trade/how-to-swap-tokens.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.
