r/Harmony_Devs • • Jun 15 '22
Question How to get contract ABI programatically?
Hello, I'm trying to get a contract ABI programatically, just like I usually do for Ethereum Mainnet and Arbitrum One, eg:
I tried using the URLs specified here https://docs.harmony.one/home/developers/api, but none seem to work for this contract https://explorer.harmony.one/address/0x35d112044d174dd16fee24d5c5cab24f4f81cb41.
Does Harmony One have support for this?
Thanks in advance! :)
1
Upvotes
View all comments
2
u/SlightAddress Jun 16 '22
There is an API you can call if it is uploaded and verified with Harmony.
I have an example here:
https://github.com/johnashu/web3_base/blob/59d4aa1d1b3f2ecc07f605f476464fa6a1d3b844/web3_base.py#L34