1

Is it possible to derive the hash of a smart contract deployment transaction using only a smart contract address? If so, what is the best way of doing so?

1 Answer 1

0

Yes, unless you need to automate it, the simplest way is probably just to use Etherscan.

Just go to etherscan.io and paste the contract address in the search bar.

Then in the "more info" section of the page about the contract you will see

ContractCreator: 0xabcd... at txn 0xabcd...

Click on the txn, and it will give you all the information about that transaction, including the hash.

1
  • But how does etherscan get it? What if we need to automate it, and want a decentralized technique rather than relying on etherscan or some other centralized service? Sep 18, 2023 at 17:21

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.