Hi I keep getting the following error when attempting to get /api/moralis/evmApi/getWalletTokenBalances
. I am not sure what the issue is but here is my code.
const { fetch: call, data: balances } = useEvmWalletTokenBalances()
useEffect(() => {
if (addr) {
call({ address: addr, chain: sepolia })
}
console.log(balances)
}, [addr])
I have checked that both addr
and sepolia
are valid constants.