Skip to content

Wallet Endpoints

Withdraw (USER_DATA)

  • POST /api/v1/account/withdraw

Submit a withdraw request.

Weight: 1

Response

json
{
  "success": true,
  "needBrokerAudit": false, // Do you need a brokerage review?
  "id": "423885103582776064", // Withdrawal successful order id
  "refuseReason": "" // failure rejection reason
}

Parameters

NameTypeMandatoryDescription
coinSTRINGYESasset
clientOrderIdLONGYESclient id for withdraw
addressSTRINGYESWithdrawal address (Note: the withdrawal address must be maintained in the PC terminal or APP terminal in the common address list inside the address)
addressExtSTRINGNOtag
quantityDECIMALYESNumber of coin withdrawals
chainTypeSTRINGNOchain type, The chainType of USDT is OMNI ERC20 TRC20 respectively, and the default is OMNI
vaspCodeSTRINGNOvasp code
targetPersonFirstNameSTRINGNOtarget person first name
targetPersonLastNameSTRINGNOtarget person last name

Withdrawal records (USER_DATA)

  • GET /api/v1/account/withdrawOrders (HMAC SHA256)

Weight: 5

Response

json
[
    {
        "time": "1536232111669",
        "id ": "90161227158286336",
        "accountId": "517256161325920",
        "coinId ": "BHC",
        "coinName": "BHC",
        "address": "0x815bF1c3cc0f49b8FC66B21A7e48fCb476051209",
        "addressExt": "address tag",
        "quantity": "14", // Withdrawal amount
        "arriveQuantity": "14", // Amount received
        "statusCode": "PROCESSING_STATUS",
        "status": 3,
        "txId ": "",
        "txIdUrl ": "",
        "walletHandleTime": "1536232111669",
        "feeCoinId ": "BHC",
        "feeCoinName ": "BHC",
        "fee": "0.1",
        "requiredConfirmTimes ": 0, // Number of confirmation requests
        "confirmTimes ": 0, // number of confirmations
        "kernelId": "", // Exclusive to BEAM and GRIN
        "isInternalTransfer": false // Whether internal transfer
    }
]

Parameters

NameTypeMandatoryDescription
coinSTRINGNOasset
startTimeLONGNOstart timestamp
endTimeLONGNOend timestamp
fromIdLONGNOFrom which OrderId to start fetching
withdrawOrderIdLONGNOWithdrawal order ID
limitINTNOdefault 500; maximum 1000
recvWindowLONGNOrecv window
timestampLONGYESTimestamp

Deposit Address (USER_DATA)

  • GET /api/v1/account/deposit/address (HMAC SHA256)

Fetch deposit address with network.

Weight: 1

Response

json
    {
        "canDeposit": false, //Is it possible to recharge
        "address": "0x815bF1c3cc0f49b8FC66B21A7e48fCb476051209",
        "addressExt": "address tag",
        "minQuantity": "100", //minimum amount
        "requiredConfirmTimes ": 1, //Arrival confirmation number
        "canWithdrawConfirmNum ": 12, //Withdrawal confirmation number
        "coinType": "ERC20_TOKEN"
    }

Parameters

NameTypeMandatoryDescription
coinSTRINGYESasset
chainTypeSTRINGYESchain type, The chainType of USDT is OMNI ERC20 TRC20 respectively, and the default is OMNI

Deposit History (USER_DATA)

  • GET /api/v1/account/depositOrders (HMAC SHA256)

Weight: 5

Response

json
[
  {
        "id": 100234,
        "coin": "EOS",
        "coinName": "EOS",
        "address": "deposit2bb",
        "addressTag": "19012584",
        "fromAddress": "clarkkent",
        "fromAddressTag": "19029901",
        "time": 1499865549590,
        "quantity": "1.01",
        "status": "2", // 2=SUCCESS, 11=REJECT, 12=AUDIT
        "statusCode": "DEPOSIT_CAN_WITHDRAW",
        "requiredConfirmTimes": "5",
        "confirmTimes": "5",
        "txId": "98A3EA560C6B3336D348B6C83F0F95ECE4F1F5919E94BD006E5BF3BF264FACFC",
        "txIdUrl": ""
  }
]

Parameters

NameTypeMandatoryDescription
coinSTRINGNOasset
startTimeLONGNOstart timestamp
endTimeLONGNOend timestamp
fromIdLONGNOFrom which Id to start crawling
limitINTNODefault 500; Max 1000
recvWindowLONGNOrecv window
timestampLONGYESTimestamp

Notes:

  • If fromId is set, it will filter the orders smaller than id. Otherwise, the most recent order information will be returned.

Released under the MIT License.