提币
提币
Create an on-chain withdrawal. API withdrawals are restricted to whitelist addresses. Call Withdraw Config first to get valid chains, amount limits, precision, memo requirements, account balances, and whitelist addresses.
Authentication uses the standard private REST headers described in Access Guide; no extra withdrawal-specific request headers are required.
Request URL
POST /deepcoin/v2/asset/withdrawal
Request Parameters
| Field Name | Required | Type | Description |
|---|---|---|---|
| ccy | true | string | Coin, for example USDT |
| chain | true | string | Chain from withdraw-config, for example USDT-TRC20 |
| amt | true | string | Withdrawal amount |
| addressId | true | string | Whitelist address ID |
| toAddr | false | string | Withdrawal address. If provided, it is only used to verify consistency with the whitelist address |
| memo | false | string | Memo/tag/payment ID. Required when needMemo=true or when the whitelist address has a memo. If provided by the whitelist address, it must match addresses[].memo |
| accountTypes | false | array | Debit account type: funding, spot, swap. Currently supports one item only. Default: funding |
| clientId | false | string | Client request ID, max 32 characters |
| remark | false | string | Remark |
Request Example
{
"ccy": "USDT",
"chain": "USDT-TRC20",
"amt": "30",
"addressId": "574",
"toAddr": "TEV1gDkDST3kUtv27SCYfbAoz7ukLMwJdS",
"accountTypes": ["funding"],
"clientId": "withdraw_golang_example_001",
"remark": "golang example withdrawal"
}
accountTypes is the public request field used to select the debit account. Send at most one account type in a withdrawal request.
When using a whitelist address with memo, pass the same memo value in the withdrawal request.
| accountTypes | Debit account |
|---|---|
| funding | Funding |
| spot | Spot |
| swap | Futures |
Response Parameters
| Field Name | Type | Description |
|---|---|---|
| wdId | string | Withdrawal ID |
| clientId | string | Client request ID |
| ccy | string | Coin |
| chain | string | Chain |
| amt | string | Withdrawal amount |
| fee | string | Withdrawal fee |
| state | string | Withdrawal state |
| cTime | string | Created time |
Response Example
{
"code": "0",
"msg": "",
"data": {
"wdId": "339288",
"clientId": "withdraw_golang_example_001",
"ccy": "USDT",
"chain": "USDT-TRC20",
"amt": "30",
"state": "pending",
"cTime": "1777970397179"
}
}