跳至主要内容

提現

POST

/az/spot/withdraw

注意:參數以json形式放在body中

注意:目前僅支持鏈上提現,內部轉賬(toAccountId)暫不支持;未攜帶鏈上 address 的請求會被拒絕並返回 "Internal transfer is not supported."

限流規則​

1/s/apikey

請求參數​

參數類型是否必須默認值描述取值範圍
fromAccountstringfalseSPOT提現賬戶類型,現貨或者是合約SPOT; FUTURES_U
currencystringtrue幣種名稱,可從'獲取AZ可充提的幣種'接口中獲取
chainstringtrue轉賬網絡名稱,可從'獲取AZ可充提的幣種'接口中獲取。鏈上提現必填。
clientOrderIdstringfalse自定義客戶端ID,正則:^[a-zA-Z0-9_]{4,32}$
amountnumbertrue提現金額,包含手續費部分
addressstringtrue提現地址。必填——目前僅支持鏈上提現,內部轉賬暫不支持。
memostringfalsememo,對於EOS類似的需要memo的鏈必傳
toAccountIdnumberfalse收款用戶ID。暫不支持——內部轉賬當前已禁用,該參數會被忽略,僅支持鏈上提現。

Request

{
"currency":"zb",
"chain":"Ethereum",
"amount":1000,
"address":"0xfa3abfa50eb2006f5be7831658b17aca240d8526",
"memo":""
}

Response

{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"id": 100 //Long 提現記錄id,用於後期查詢提現歷史記錄
}
}