Withdrawal Methods
Withdrawal methods of Azoth SDK for withdrawing tokens from the system.
withdraw()
withdraw()async withdraw(amount: bigint | number): Promise<ethers.TransactionResponse>// Format the amount correctly (50 USDT with 6 decimals)
const amount = formatInput('50', 6);
// Withdraw
const tx = await azoth.withdraw(amount);
await tx.wait();
console.log('Withdrawal successful');withdrawBySig()
withdrawBySig()withdrawTo()
withdrawTo()Last updated