Filter
Documentation for eth_defi.event_reader.filter.Filter Python class.
- class Filter
Bases:
objectInternal 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.readerLive 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)- topics: Dict[str, web3.contract.contract.ContractEvent]
Preconstructed topic hash -> Event mapping
- bloom: Optional[eth_bloom.bloom.BloomFilter]
Bloom filter to match block headers TODO: Currently unsupported