I know how to extract the constructor arguments out of the transaction object returned from a contract-deployment operation.
It is explain in web3.js official documentation here.
But this is not an issue of course, because if I am the one deploying the contract, then I obviously know the constructor arguments beforehand.
I am interested in retrieving the constructor arguments of an already deployed contract, i.e., the constructor arguments used during the deployment of that contract (by someone else).
I have the following at my disposal:
- The address of the deployed contract
- The byte-code of the deployed contract
- The contract-deployment's transaction hash
Can any of the above help me retrieving the constructor arguments of an already deployed contract?
Thank you!
Note: Displaying Similar Match Verified Source Code At Contract 0x5cb5F46a655C02889172323760d12d0e5D83CDAf(Excluding Constructor Arguments if any). When I click the link there, I do get to see constructor arguments. But as I understand it, those are not necessarily the same values used in the contract that I am interested in. Do I have to get this contract verified in order to view its constructor arguments? In the link that you provided, the contract doesn't seem to have been verified. – goodvibration Jan 07 '19 at 12:17