Not able to sync Smart Contracts Events

Good morning friends, I am trying to synchronize my smart contract with the events item added and item sold, what can I be doing wrong?

{

"anonymous": false,

"inputs": [

  {

    "indexed": false,

    "internalType": "uint256",

    "name": "id",

    "type": "uint256"

  },

  {

    "indexed": false,

    "internalType": "uint256",

    "name": "tokenId",

    "type": "uint256"

  },

  {

    "indexed": false,

    "internalType": "address",

    "name": "tokenAddress",

    "type": "address"

  },

  {

    "indexed": false,

    "internalType": "uint256",

    "name": "askingPrice",

    "type": "uint256"

  }

],

"name": "itemAdded",

"type": "event"

}

what type of chain it is? try to give it a different name and not id to this one:

I used chain: β€œgoerli”

ok, in this case it should work without issues
you can also paste the server url

is https://6ffwr7obhzfr.usemoralis.com:2053/server

I found only this event on that server:

{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"}

this is not going to work because the names have that _, you have to edit the abi and remove those _

perfect, so I’m going to remove the event and create them again

@cryptokid this worked, thanks :arrow_up:

1 Like