Hey All
I’m stuck on the “Metamask Balances” exercise near the end of the Javascript programming course. Everything has worked well up to this point. But now no matter what I try I get that I have no balance even though I have .0077 ETH as a balance in my metamask Eth Mainnet
Here’s my code
// connect to Moralis server
const serverUrl = "...REMOVED...";
const appId = "...REMOVED...";
Moralis.start({ serverUrl, appId });
// add from here down
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate();
}
console.log("logged in user:", user);
getStats();
}
async function getStats() {
const paramaters = {chain: 'eth', address: '0x3...REMOVED...'};
const balances = await Moralis.Web3API.account.getTokenBalances(paramaters);
console.log(balances);
}