Moralis.Cloud.define("watchAddress", async(request)=>{
const logger = Moralis.Cloud.getLogger();
logger.info("watchAddress called from front end")
const address = request.params.address;
if(!address) throw Error("no address provided");
const result = await Moralis.Cloud.run("watchEthAddress",{address: address, sync_historical: false}, {useMasterKey:true});
return result ;
});
This is the code is use as cloud function and when I pass the address from the front end it says invalid function âwatchEthAddressâ .
As you said âif a user authenticates with metamask, then you donât have to add that particular eth address to watch because it will be synced automaticallyâ. so you mean that I donât need to run the above code for every individual user if the use metamask login to access my app ?
-
I have been using Metamask login for past one month but I couldnât get the transaction history !
-
Is it available only for the paid version ?
My computer science degree is in your hands am building my final semester project using moralis.