Hi,
I’m trying to get the balance of a given address, but I get only this error
Before balanceOf I’ve used the totalSupply and this works
thanks
const options = {
chain: CHAIN,
address: CONTRACT_ADDRESS,
function_name: "balanceOf",
abi: CONTRACT_ABI,
params: { who: address },
};
try {
return await Moralis.Web3API.native.runContractFunction(options);
} catch (err) {
console.log("error:", err);
}