API endpoint /historical/events always says invalid ABI

I’m using binance address 0xDc938BA1967b06d666dA79A7B1E31a8697D1565E (a farm from PanCake), trying to get events.I tried to specify “Deposit(address, uint256)” and all other kinds on events taken from https://bscscan.com/address/0xDc938BA1967b06d666dA79A7B1E31a8697D1565E#events
But it always gives me 500 http response with “Invalid ABI” text. I tried to post ABI in request body, it didn’t work. “bsc” chain selected with “main” as chain name.
What do I do wrong?

1 Like

Hi @Mma86,

Could you please also let us know what did you fill in the ABI section. Was it the entire ABI of the contract or the event object of the ABI.

Also, could you let us know if you were adding it through our Moralis GUI on the website or the cli?

A screenshot or code will help us tremendously. Also check out this video for further reference – https://www.youtube.com/watch?v=dKMyHugbK-Y

Thanks. Looking forward to your reply. :slight_smile:

Hi @malik,
Yeah, the problem was that I was using entire ABI instead of event object. Now it’s working. Thank you.

1 Like

hey im having a problem with that as well when i copy and paste the abi in the abi slot when creating plugin for “sync and watch contracts event” it keeps giving me an error " invalid abi please verify"

Hey @camerond33

Let’s continue there Invalid ABI, Please verify