hi @cryptokid,
I have working on watch contract event using ‘watchContractEvent’ cloud function.
Cloud function run successfully and get response ‘true’, but table not created in moralis database.
cloud functioin.
Moralis.Cloud.define('createSyncTable', async (request) => {
let options = {
chainId: request.params.chainId,
address: request.params.address,
topic: request.params.topic,
abi: {},
limit: 500000,
tableName: request.params.tableName,
sync_historical: false,
};
return Moralis.Cloud.run('watchContractEvent', options, {
useMasterKey: true,
});
});