Historical transactions not importing for Sync and Watch Contract Events

Configured a new server and set up Sync and Watch Contract Events as follows:

Server URL: https://kzzi3pytw726.usemoralis.com:2053/server
Chain: ETH Mainnet
Topic: TransferSingle(address,address,address,uint256,uint256)
Sync Historical: checked
Abi: (included below)
Address: 0x76be3b62873462d2142405439777e971754e8e77

This works for new events, but no historical events are imported. I see nothing in the log that indicates any errors. I also tried this with TransferBatch with similar results.

Any idea what the problem is?

TransferSingle ABI:

{
“anonymous”: false,
“inputs”: [
{
“indexed”: true,
“internalType”: “address”,
“name”: “_operator”,
“type”: “address”
},
{
“indexed”: true,
“internalType”: “address”,
“name”: “_from”,
“type”: “address”
},
{
“indexed”: true,
“internalType”: “address”,
“name”: “_to”,
“type”: “address”
},
{
“indexed”: false,
“internalType”: “uint256”,
“name”: “_id”,
“type”: “uint256”
},
{
“indexed”: false,
“internalType”: “uint256”,
“name”: “_value”,
“type”: “uint256”
}
],
“name”: “TransferSingle”,
“type”: “event”
}

1 Like

it looks like it works fine for me, but I had to change that ABI so that it doesn’t contain names that start with _.

I used this abi:

{
  "anonymous": false,
  "inputs": [
    {
      "indexed": true,
      "internalType": "address",
      "name": "operator",
      "type": "address"
    },
    {
      "indexed": true,
      "internalType": "address",
      "name": "from",
      "type": "address"
    },
    {
      "indexed": true,
      "internalType": "address",
      "name": "to",
      "type": "address"
    },
    {
      "indexed": false,
      "internalType": "uint256",
      "name": "id",
      "type": "uint256"
    },
    {
      "indexed": false,
      "internalType": "uint256",
      "name": "value",
      "type": "uint256"
    }
  ],
  "name": "TransferSingle",
  "type": "event"
}
1 Like

That was it! Thanks so much :+1: