How to know block where contact deployed in smart contact? #2804
Unanswered
vietnguyen09
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Tha You can try using services like Etherscan to narrow your search, but this isn’t something built-in to the Ethereum RPC. :( |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I want to build a price chart, and my approach to this is using
getReserves({ blockTag: "earliest" })
to fetch a token price in each block.But the problem is I don't know where is the block from which the contact is deployed when I use
getReserves
withblockTag
override.I also come up with
filter
too but it still fails if I start with the earliest block.Any idea?
Beta Was this translation helpful? Give feedback.
All reactions