MulticallHistoricalTask
Documentation for eth_defi.event_reader.multicall_batcher.MulticallHistoricalTask Python class.
- class MulticallHistoricalTask
Bases:
objectPickled task send between multicall reader loop and subprocesses.
Send a batch of calls to a specific block.
Attributes summary
chain_idweb3factoryblock_numbercallsrequire_multicall_resulttimestamptask_idMethods summary
__init__(chain_id, web3factory, ...[, ...])- __init__(chain_id, web3factory, block_number, calls, require_multicall_result=False, timestamp=None, task_id=<factory>)
- Parameters
chain_id (int) –
web3factory (eth_defi.event_reader.web3factory.Web3Factory) –
block_number (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) –
calls (list[eth_defi.event_reader.multicall_batcher.EncodedCall]) –
require_multicall_result (bool) –
timestamp (datetime.datetime) –
task_id (int) –
- Return type
None