I am trying to add the native address balance everytime I add a new address to the sync function, but somehow it doesnt do anything. Where do I go wrong on this?
Moralis.Cloud.afterSave("WatchedEthAddress", (request) => {
const address = request.object.get("address);
const options = { chain: "eth", address: address};
const balance = await Moralis.Web3API.account.getNativeBalance(options);
request.object.set("eth_balance", balance);
await request.object.save();
});