refactor: Remove example usage code for balance fetching in bscOperator.js

This commit is contained in:
void-57 2026-01-08 23:54:36 +05:30
parent 63257d7045
commit 1f1cc3c7e9

View File

@ -424,19 +424,6 @@
}
});
// Example usage:
// Ensure MetaMask is connected and BSC network is selected in MetaMask
const address = "0xYourAddressHere"; // Replace with your actual address
(async () => {
try {
const usdtBalance = await getTokenBalance(address, "USDT");
const bnbBalance = await getTokenBalance(address, "BNB");
console.log("USDT Balance:", usdtBalance);
console.log("BNB Balance:", bnbBalance);
} catch (error) {
console.error("Error fetching balances:", error.message);
}
})();
const estimateGas = (bscOperator.estimateGas = async ({
privateKey,