Hi,
I was trying to get token balance in one of the cloud functions. But Iām getting error when calling this function.
Method (in cloud function):
Moralis.Cloud.define("getTokens", async (request) => {
const result = await Moralis.Web3API.account.getTokenBalances({chain: "bsc", token_address: "0xaf3889ba617ac973b35851..."});
return result;
});
Error in console:
Uncaught (in promise) Error: required param address not provided
Can someone please suggest where Iām doing wrong.