extract_events

Documentation for eth_defi.event_reader.reader.extract_events function.

extract_events(web3, start_block, end_block, filter, context=None, extract_timestamps=<function extract_timestamps_json_rpc>, reorg_mon=None)[source]

Perform eth_getLogs call over a block range.

You should use read_events() unless you know the block range is something your node can handle.

Parameters
Returns

Iterable for the raw event data

Return type

Iterable[eth_defi.event_reader.logresult.LogResult]