Merge pull request #5 from void-57/main

refactor: Remove example usage code for balance fetching in bscOperator.js
This commit is contained in:
Aniruddha 2026-01-08 23:57:24 +05:30 committed by GitHub
commit 05393be69b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,