Filter
Documentation for eth_defi.event_reader.filter.Filter Python class.
- class Filter[source]
Internal filter used to match events.
A helper class to deal with eth_getLogs JSON API.
This can be used with
Historical events:
eth_defi.event_reader.reader
Live events:
eth_defi.event_reader.websocket
Attributes summary
Get events from a single contract only.
Preconstructed topic hash -> Event mapping
Bloom filter to match block headers TODO: Currently unsupported
Methods summary
__init__
(topics, bloom[, contract_address])create_filter
(address, event_types)- bloom: Optional[eth_bloom.bloom.BloomFilter]
Bloom filter to match block headers TODO: Currently unsupported