提现
POST🔒 Withdraw
提现。需要 Withdraw 权限。手续费计算请参阅加密货币网络接口。
参数 amountIncludeFee 影响手续费的处理方式,区别如下:
amountIncludeFee= trueamount为从用户钱包扣除的金额(即包含手续费)。用户实际收到的金额为amount - fee。
amountIncludeFee= falseamount为用户希望收到的金额(即不包含手续费)。从用户钱包扣除的金额为amount + fee。
请求参数
| 名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| crypto | String | 是 | 要提现的加密货币 |
| network | String | 是 | 提现的加密货币网络 |
| address | String | 是 | 提现地址 |
| addressExtension | String | 否 | 地址扩展(例如 XRP 的 tag、EOS 的 memo)。当 Crypto Networks 返回的 needAddressExtension 为 true 时为必填项 |
| amount | String | 是 | 提现金额 |
| amountIncludeFee | Boolean | 否 | 手续费是否包含在金额中。默认值为 true。 |
| webhookUrl | String | 否 | 如需接收通知,请填写 'webhookUrl' 参数。同时请通知我们以便将 'webhookUrl' 加入白名单。 |
响应内容
| 名称 | 类型 | 描述 |
|---|---|---|
| data | Object |
example
POST
https://api.btse.com/public-api/wallet/v1/user/crypto/withdrawRequest (Common)
{
"crypto": "USDT",
"network": "ERC20",
"address": "0xc48fd69d0f4B521B7200345A67641aB4076828f2",
"amount": "36"
}
Request (Has Extension)
{
"crypto": "XRP",
"network": "RIPPLE",
"address": "rHJhVRJGWGDqVX6cX8Ca1nPZMrkARE2VVx",
"addressExtension": "533973779",
"amount": "20"
}
Request (Has Webhook URL)
{
"crypto": "USDT",
"network": "ERC20",
"address": "0xc48fd69d0f4B521B7200345A67641aB4076828f2",
"amount": "36",
"webhookUrl": "{URL for webhook}"
}
Response
{
"success": true,
"code": 1,
"msg": "Success",
"time": 1624989977940,
"data": {
"transactionRef": "2025060500001",
"orderId": "cca02a29-e47c-4ee7-9d42-28b850a843ec",
"crypto": "USDT",
"network": "ERC20",
"address": "0xc48fd69d0f4B521B7200345A67641aB4076828f2",
"addressExtension": null,
"amountToAddress": "30.45",
"fees": "5.55"
}
}