直达内容

查询提现手续费

GET /safe/assets/:id/fees

查询某资产的可能提现手续费。手续费可能会随着目的地址/域名以及网络状况变化。

API 端点 URL

 https://api.mixin.one/safe/assets/:id/fees

授权和其他选项

授权
ASSETS:READ
限制No limitation

参数

id
*必须
资产的 asset_id

请求示例

curl -i -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/safe/assets/3596ab64-a575-39ad-964e-43b37f44e8cb/fees?destination=0x0000000000000000000000000000000000000000&domain=ens

响应

返回手续费对象数组。

[
{
"type": "withdrawal_fee",
"asset_id": "3596ab64-a575-39ad-964e-43b37f44e8cb",
"amount": "0.001",
"priority": "normal"
}
]

字段说明

字段类型说明
typestring对象类型。本接口恒为 withdrawal_fee
asset_idstring手续费对应的资产 ID。
amountstring该优先级下的预估手续费,十进制字符串。
prioritystring手续费优先级,例如 slownormalfast