I’ve been trying to get this to work for hours, I’ve read the API documentation and it’s not helpful at all.
I’ve been able to call other methods in the API without problem, so the timestamp and signature calc functions work.
I set the withdrawal amount to “1000.00”,
What do I to get this thing to work please?
{{{
const timeStamp = Utils.getUnixTimeStampMS()
const baseURL = “https://api.binance.com”
const urlPath = “/wapi/v3/withdraw.html”
const params = {
asset: "DOGE",
network: "BSC",
address: address,
amount: amount,
timestamp: timeStamp,
}
// @ts-ignore
const paramsURL = new URLSearchParams(params)
const paramsString = paramsURL.toString()
// API signature is a function of the parameters passed to the call (minus the api signature itself)
const apiSignature = BinanceIntegration.generateAPISignature(paramsString, "", apiSecret)
const fullParams = {
...params,
"signature": apiSignature
}
const response: AxiosResponse<any> = await axios.post(baseURL + urlPath, {
headers: {
"X-MBX-APIKEY": apiKey,
},
params: fullParams
})
}}}