Hello, nice to meet you.
I wrote the code like below to withdraw money using API.
async function withdrawToken(address, amount) {
try {
// Call the Binance API using rawRequest
const response = await client.withdraw({coin: “USDT”, network: “ETH”, address: address, amount: amount});
console.log(‘Withdrawal response:’, response);
return response;
} catch (error) {
console.error(‘Error withdrawing USDT:’, error.response?.data || error.message);
throw error;
}
}
I got this error.
Error withdrawing USDT: Please note that withdrawals through SAPI are not permitted. To facilitate the withdrawal process, please use the official Binance website or mobile application.
I don’t know how the other people withdraw tokens from the binance using api.
I already check the “withdraw” using api already.
What’s the problem?
Best regards.