I'm getting the code of a smart contract by using
web3.eth.getCode(contract_address)
I want to call certain functions that I'm fairly certain exist on that contract, however I don't know the signatures of every single function in the contract. How would I first check that the function exists? Assuming the function exists, would it be possible to just decode that function and then call it? Otherwise, how would I decode the whole contract including the functions I don't know in order to get the abi and create the web3 contract onject?