[SOLVED] Running addEvents.js returns false

you need only the abi for the event that you want to sync, but in the right format

the interface says “Paste the whole ABI or just the event object of the contract” so I’ve tried both options, and still the same result.

The format I use is json, is it supposed to be something else?

it should have the proper start and ending, not random , or other things like

Could you give me an example ?
It’s the first time I have to do this, so I’ve tried removing the abi in front, removing brackets, etc… but it doesnt work

    anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "nftAddress",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "tokenId",
          "type": "uint256"
        }
      ],
      "name": "NFTDeleted",
      "type": "event"

That’s what appears in the .json file that has the abi in it, I’m not sure how to format it

the syntax is different when you use it in the admin interface vs when you use it from a script to add an event sync

when you add it from the interface you will need [ at the beginning and ] at the end, and the abi only for your specific event should be enough inside those [ ]

nothing more, no extra , no other things before and after

alright, so [ inputs, name, type] only as data inside those brackets, correct?

no, you have to update this one a little, add [ ], remove a , and that should be all

ooook, finally got it, thank you!!! now it allows me to access the topic and save it.
I’ll keep you updated on how it goes now

1 Like

Thanks again for your help! running mint-and-list correctly lists my NFT and I can see it on the dashboard.

I’ll keep looking at this eth_blockNumber counter running wild, there may be some event listener stuck on a loop or something. Probably has to do with my code, but at least I can move forward with my dapp.
I’ll also investigate why the script is not working, just 'cause.

Thanks again, you were very helpful :slight_smile:

1 Like