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

# 支持的资产与网络

> 查询当前可用的币种和区块链网络、各自的限额，以及实时网络费。

[Stablecoin Account API 发布方声明](/zh/stablecoin-account/v1.6/guide/stablecoin-account-api-publisher-disclaimer)

资产与网络的可用性是动态的 —— 网络会进入维护、费用随拥堵波动、最小金额因网络而异。请在运行时查询配置接口，不要在代码里硬编码资产列表。

<h2 id="list-supported-assets-and-networks">
  查询支持的资产与网络
</h2>

[List Supported Assets and Networks](/zh/stablecoin-account/v1.6/api-reference/list-supported-assets) 返回系统支持的全部币种，以及加密资产可流转的网络。可用 `asset_type=CRYPTO` 或 `asset_type=FIAT` 过滤。

```bash theme={null}
curl "https://api-sandbox.uqpaytech.com/api/v1/ramp/config/assets?asset_type=CRYPTO" \
  -H "x-auth-token: YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**响应（节选）：**

```json theme={null}
{
  "code": 200,
  "message": "Success",
  "data": [
    {
      "asset": "USDT",
      "asset_name": "Tether USD",
      "asset_type": "CRYPTO",
      "networks": [
        {
          "network": "ETH",
          "network_name": "Ethereum (ERC20)",
          "deposit_enabled": true,
          "withdraw_enabled": true,
          "min_deposit_amount": "10.00",
          "min_withdraw_amount": "20.00",
          "withdraw_precision": 2,
          "estimated_arrival_time": 15
        }
      ]
    }
  ]
}
```

在向用户开放某个流程之前，先检查这些按网络返回的字段：

| 字段                                           | 用途                     |
| -------------------------------------------- | ---------------------- |
| `deposit_enabled` / `withdraw_enabled`       | 隐藏该网络当前关闭的方向。          |
| `min_deposit_amount` / `min_withdraw_amount` | 在调用 API 之前拦截低于最小金额的请求。 |
| `withdraw_precision`                         | 将提现金额按可接受的小数位数取整。      |
| `estimated_arrival_time`                     | 设置到账时间预期，单位为分钟。        |

<h2 id="estimate-the-network-fee">
  估算网络费
</h2>

网络费是动态的，随区块链拥堵变化。在用户确认提现之前调用 [Estimate Network Fee](/zh/stablecoin-account/v1.6/api-reference/estimate-network-fee) 并展示估算值 —— 实际收取的费用可能与估算略有出入。

```bash theme={null}
curl "https://api-sandbox.uqpaytech.com/api/v1/ramp/config/network-fee?asset=USDT&network=ETH&amount=100" \
  -H "x-auth-token: YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**响应：**

```json theme={null}
{
  "code": 200,
  "message": "Success",
  "data": {
    "asset": "USDT",
    "network": "ETH",
    "network_fee": "5.00",
    "processing_fee": "0.00",
    "total_fee": "5.00",
    "fee_asset": "USDT",
    "estimated_time": 15,
    "network_status": "NORMAL",
    "update_time": "2024-07-18T14:19:52+08:00"
  }
}
```

<Warning>
  如果 `network_status` 为 `MAINTENANCE`，该网络的提现暂时不可用 —— 请拦截流程并稍后重试。`NORMAL` 表示网络正常运行。
</Warning>

<h2 id="related">
  相关页面
</h2>

* [List Supported Assets and Networks API](/zh/stablecoin-account/v1.6/api-reference/list-supported-assets)
* [Estimate Network Fee API](/zh/stablecoin-account/v1.6/api-reference/estimate-network-fee)
* [发起提现](/zh/stablecoin-account/v1.6/guide/send-withdrawals) —— 网络费估算在提现流程中的位置
* [接收充值](/zh/stablecoin-account/v1.6/guide/receive-deposits)
