Adding deploymentBlocknumber property for BaseContract #4716
tornadocontrib
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
This unfortunately is not data that is indexed. There is no way (outside of adding additional data; such as how Etherscan does) to determine the block at which a contract was deployed. The Moving to discussion. :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ethers Version
latest
Search Terms
No response
Describe the Problem
Would be great to have this as an alternative approach for deploymentTransaction . deploymentTransaction would be useful to fetch deployment block number required to fetch historic contract events until Geth starts to prune old transactions ( transactions more than a year ). Since almost every public nodes now have a pruned transaction state it would make sense if we could add the deploymentBlock or deploymentBlockNumber property that could be used for fetching historic events.
Code Snippet
No response
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions