I’m extracting data from Log events but many do not follow the ERC20 standard ABI.
For example the logs in this transaction - If I try to decode the log with web3 AbiCoder.decodeLog(...) and use the ERC20 ABI it fails. But when I review the log on the Harmony Block Explorer (linked above) it shows: Suggested Event: Approval(address,address,uint256) Suggested Event: Transfer(address,address,uint256)
…etc
How is it abstracting this data? Are the ABI’s published somewhere for those contracts? Any help appreciated.
Can you programmatically get the ABI for the contract with an API request? I’d like to avoid manually grabbing every ABI or writing a scraper. I think I’m also curious how harmony is writing the logic for Suggested Event
This is great, thank you! The example I posted uses this contract address 0x5f753dcdf9b1ad9aabc1346614d1f4746fd6ce5c
It seems like it’s published to Harmony here but the API returns Contract not found. Any thoughts? Does it need to be verified or did I misread the contract wrong on Harmony
Your post was flagged as spam : the community feels it is an advertisement, something that is overly promotional in nature instead of being useful or relevant to the topic as expected.
This post was hidden due to flags from the community, so please consider how you might revise your post to reflect their feedback. You can edit your post after 10 minutes, and it will be automatically unhidden.
However, if the post is hidden by the community a second time, it will remain hidden until handled by staff.