send-crypto
send-crypto copied to clipboard
Getting the testnet balance is not working anymore
Getting the balance with an ETH Testnet Wallet is not working anymore. But the ETH Mainnet is still woking.
//My Code
const GetWalletInfo = async () => {
const account = new CryptoAccount(PrivKey, { network: "goerli", });
/* Print Balance */ console.log(await account.getBalance("ETH"));
}
GetWalletInfo()
// Console Error
var error = new Error(message);
^
Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.0)
at Logger.makeError (/Users/elisabethbangoura/Desktop/testingBTCAddress/node_modules/@ethersproject/logger/lib/index.js:238:21)
at Logger.throwError (/Users/elisabethbangoura/Desktop/testingBTCAddress/node_modules/@ethersproject/logger/lib/index.js:247:20)
at JsonRpcProvider.
Node.js v18.16.0 ....