Skip to main content

Withdraw

Description​

POST /v4/withdraw


Note​

  • The parameters are placed in the body in JSON format.

Limit Rule​

  • 1/s/apikey

Parameters​

NameTypeMandatoryDefaultDescriptionRanges
currencystringYes—Currency name, obtained from Get supported currencies for deposit/withdraw
chainstringNo—Transfer network, obtained from Get supported currencies for deposit/withdraw
clientOrderIdstringNo—Custom Client ID, RegEx: ^[a-zA-Z0-9_]{4,32}$
amountnumberYes—Withdrawal amount, including fees
addressstringNo—Withdrawal address
memostringNo—Memo, required for EOS-like chains
toAccountIdnumberNo—Receiving user ID

Request Example​

Request
  curl --location --request POST 'https://sapi.xt.com/v4/withdraw' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \
--header 'validate-algorithms: HmacSHA256' \
--header 'validate-recvwindow: 60000' \
--header 'validate-appkey: xxxxxxxxxx' \
--header 'validate-timestamp: xxxxxxxxxx' \
--header 'validate-signature: xxxxxxxxxx' \
--data '{
"currency": "XT",
"chain": "XT Smart Chain",
"amount": 10,
"address": "xxxxxxxxxx"
}'

Response Example​

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