Iām trying to track an address following these instructions: https://docs.moralis.io/moralis-server/automatic-transaction-sync/historical-transactions#watch-address-from-code
I tried this:
const results2 = await Moralis.Cloud.run("watchMaticAddress", {
address: data.wallet,
sync_historical: true,
});
and got this error
Error: Invalid function: "watchMaticAddress"
at handleError (D:\cost_basis_ab\node_modules\moralis\lib\node\RESTController.js:423:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async getWalletCostBasis (D:\cost_basis_ab\server5.js:230:20) {message: 'Invalid function: "watchMaticAddress"', code: 141, stack: 'Error: Invalid function: "watchMaticAddress"
ā¦iReturn Code\cost_basis_ab\server5.js:230:20)'}
I also added this address through the Moralis admin. It says it is ācurrently synchingā but in the dashboard, only a few Eth transactions are showing up. No Polygon txs.
Also tried to run a job to sync the polygon txs.