estimate_block_number_for_timestamp_by_quicknode
Documentation for eth_defi.provider.quicknode.estimate_block_number_for_timestamp_by_quicknode function.
- estimate_block_number_for_timestamp_by_quicknode(web3, timestamp)
Estimate block number for a given timestamp.
Use QuickNode API
Use proprietary
qn_getBlockFromTimestampmethod
- Parameters
web3 (web3.main.Web3) – Web3 connection. Must use QuickNode as a provider.
timestamp (datetime.datetime) – Timestamp to estimate the block number for
- Returns
Estimated block number
- Return type