this question comes from this post: What does etherscan mean by "Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)"?

My goal is to read contract deployment tx's, parse the data field and be able to determine the constructor args used in the deployment.

That post talks about a set of bytes in the beginning of the data that tells the evm where the constructor begins but taking that logic to OTHER contract deployments, the bytes in the same location dont appear to say the same thing.

So tldr - how can i reliably retrieve the constructor args from the encoded abi that is within a deployment tx data field?

Thanks so much


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.