Is there any method(ology) in web3 which allows to get the block number at a given date?
In particular, I have two dates as an input and I want to effectively get all events between those two dates. I know that I can do this by having block numbers:
contract.Event({}, { fromBlock: 100000, toBlock: 121212 })
But is it possible to do so with Date
s? Thanks!