5

How does one query the "birth block" of a contract using web3?

2

One possibility would be, taht the smart contract saves the block number / txid upon the call of the constructor

Otherwise, as stated here How to find contract creation block time with web3?, you will need to search for the creating transaction

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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