fetch_block_timestamps_using_hypersync_cached

Documentation for eth_defi.hypersync.hypersync_timestamp.fetch_block_timestamps_using_hypersync_cached function.

fetch_block_timestamps_using_hypersync_cached(client, chain_id, start_block, end_block, cache_path=PosixPath('/home/runner/.tradingstrategy/block-timestamp'), display_progress=True, attempts=5)

Sync wrapper.

See fetch_block_timestamps_using_hypersync_cached_async() for documentation.

Parameters
  • attempts – Work around Hypersync timeout issues

  • client (hypersync.HypersyncClient) –

  • chain_id (int) –

  • start_block (int) –

  • end_block (int) –

  • display_progress (bool) –

Return type

eth_defi.event_reader.timestamp_cache.BlockTimestampSlicer