fetch_sparse_block_timestamps_using_hypersync_cached

Documentation for eth_defi.hypersync.hypersync_timestamp.fetch_sparse_block_timestamps_using_hypersync_cached function.

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

Synchronously fetch sparse sampled timestamps with retry/backoff.

Parameters
  • attempts (int) – Maximum Hypersync attempts; completed checkpoints survive retries.

  • client (hypersync.HypersyncClient) –

  • chain_id (int) –

  • start_block (int) –

  • end_block (int) –

  • step (int) –

  • display_progress (bool) –

Returns

Cache-backed timestamp slicer containing every requested sample.

Return type

eth_defi.event_reader.timestamp_cache.BlockTimestampSlicer