event_reader.json_state
Documentation for eth_defi.event_reader.json_state Python module.
Serialise event scan state as a JSON file.
Classes
Save and resume block event scan using state serialised in JSON file. |
- class JSONFileScanState
Bases:
eth_defi.event_reader.state.ScanStateSave and resume block event scan using state serialised in JSON file.
- Parameters
fname – In which file we store the last processed block number.
- save_state(last_block)
Saves the last block we have read.