# 如何兌換代幣

在 Byreal 上兌換代幣只需幾個步驟。Byreal 透過多種兌換模式自動選擇最佳價格和執行路徑，包括其原生 CLMM 池、鏈下 RFQ 報價以及 Raydium、Orca 和 Meteora 等第三方聚合器。

## 步驟教學：您的第一筆兌換

{% stepper %}
{% step %}

#### 連接錢包

訪問 [Byreal.io](https://byreal.io/)，連接您的 Solana 錢包（Phantom、Solflare、Backpack 或任何相容錢包）。
{% endstep %}

{% step %}

#### 選擇代幣

選擇您要賣出的代幣（輸入）和要接收的代幣（輸出）。您可以透過名稱、代號搜尋，或貼上代幣的合約（mint）地址。
{% endstep %}

{% step %}

#### 輸入金額

輸入您要買入或賣出的金額。Byreal 會即時計算最佳路由並顯示預期輸出金額。
{% endstep %}

{% step %}

#### 查看交易詳情

確認前，請查看預期輸出、網路費用、價格影響和滑點容忍度。這些資訊會清楚顯示在兌換介面中。
{% endstep %}

{% step %}

#### 確認並兌換

點擊 **Buy** 或 **Sell**，在錢包中批准交易。確認後，交易將提交到 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-tw/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.
