Im wanting to pull data from a smart contract I've loaded via user address and etherscan API for the ABI.
But how would I go about programmatically adding all the functions from the ABI into my front end?
Basically, say I want to look up the crypto kitties contract and get the ABI via etherscan API.
But how would I know what functions to call or list?
Say I want to do what etherscan does and let you call different functions from the abi?
Basically workflow:
User puts in address. Pull ABI from etherscan Load contract with ABI ??? How to add all the functions to my front end via the ABI, using JS. ???
How do I call a function without knowing the function name such as getKittyData