Hello,
I am setting some syncs on Moralis server to follow transfer events on Avalanche and get all historic events. Currently I am doing it this way:
"options": {
"chainId": "0xA86A",
"address": "0x9241019821a172ec310f5D3aFb784e51f3358675",
"topic": "Transfer(address,address,uint256)",
"abi": {
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
"limit": 500000,
"tableName": "avalanchexaecfDaFbefTransfer",
"sync_historical": true
}
const watchContractEventResult = await Moralis.Cloud.run(
'watchContractEvent',
options,
{
useMasterKey: true,
},
);
I get the sync created and the table in the database, but no events are stored there. If I check the explorer, there are plenty of transfers and many holders. I was worried about the chainId of avalanche ( 43114 --> 0xA86A) not being properly set, but it is, and it is working for me for other smart contracts. Is there any issue with avalanche RPC?