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