Hi there,
I was trying to get all erc balance using
const balances = await Moralis.Web3.getAllERC20( { chainId: chainToQuery })
I have difficulties on defining chainToQuery as this script showing number/hex instead of string (looking for “bsc” or “bsc testnet”)
const chainToQuery = await web3.eth.getChainId();
Looking forward your advice.