> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockradar.co/llms.txt
> Use this file to discover all available pages before exploring further.

# 兑换 API

> 跨资产和链兑换稳定币。

兑换 API 允许您直接从 Blockradar 钱包将一种稳定币兑换为另一种。兑换可从主钱包或子地址发起。

## 功能概述

* 在提交前获取兑换报价
* 在支持的资产之间执行兑换
* 从主钱包和子地址发起兑换

## 端点

| 方法     | 端点                                                     | 描述         |
| ------ | ------------------------------------------------------ | ---------- |
| `POST` | `/wallets/{walletId}/swap/quote`                       | 从主钱包获取兑换报价 |
| `POST` | `/wallets/{walletId}/swap`                             | 从主钱包执行兑换   |
| `POST` | `/wallets/{walletId}/addresses/{addressId}/swap/quote` | 从子地址获取兑换报价 |
| `POST` | `/wallets/{walletId}/addresses/{addressId}/swap`       | 从子地址执行兑换   |

<Card title="完整 API 参考" icon="book" href="/zh/api-reference/swap/master-wallet-get-quote">
  在 API 参考选项卡中查看所有兑换端点。
</Card>
