const suggestedParams = await wallet.algod.getTransactionParams().do();
const txn = algosdk.makePaymentTxnWithSuggestedParamsFromObject({
sender: wallet.acct.addr,
receiver: wallet.acct.addr,
amount: 0,
suggestedParams,
});
const signedTxns = await wallet.signTxn(token.value, [txn]);
await wallet.algod.sendRawTransaction(signedTxns.map((stxn) => stxn.blob)).do();
console.log("Waiting for confirmation...");
await algosdk.waitForConfirmation(wallet.algod, signedTxns[0].txID, 4);
await wallet.getAcctInfo();
console.log(Number(wallet.acctInfo.amount) / 10 ** 6);