CachedBlockTimestamp

Documentation for eth_defi.hypersync.hypersync_timestamp.CachedBlockTimestamp Python class.

class CachedBlockTimestamp

Bases: object

Block number and timestamp persisted in the timestamp cache.

Attributes summary

block_number

EVM block number.

timestamp

Unix timestamp in seconds.

Methods summary

__init__(block_number, timestamp)

block_number: int

EVM block number.

timestamp: int

Unix timestamp in seconds.

__init__(block_number, timestamp)
Parameters
  • block_number (int) –

  • timestamp (int) –

Return type

None