data.core

Base classes for data classes

class web3cat.data.core.DataCore(start: int | datetime.datetime, end: int | datetime.datetime, **kwargs)

Bases: object

Base class for all data classes

start: int | datetime.datetime
end: int | datetime.datetime
property from_block_number: int

Start block number for the data.

property to_block_number: int

End block number for the data.

property from_timestamp: int

Start unix timestamp for the data.

property to_timestamp: int

End unix timestamp for the data.

property from_date: datetime

Start datetime for the data.

property to_date: datetime

End datetime for the data.

property w3: Web3

An instance of web3.Web3