Hi Everyone,
I’m building a UI for my Dex now I’ve finished the course, but am not able to get the user’s token balance.
I am using the below line of code with my deployed Link contract.
const wlBalance = await link_contract.methods.balanceOf(accounts[0]).call();
The error I keep getting is MetaMask - RPC Error: Internal JSON-RPC error. {code: -32603, message: “Internal JSON-RPC error.”
This looks like it might be set-up related. I’m using Ganache…Anyone any idea what I am doing wrong?