call_multicall_batched_single_thread
Documentation for eth_defi.event_reader.multicall_batcher.call_multicall_batched_single_thread function.
- call_multicall_batched_single_thread(multicall_contract, calls, block_identifier, batch_size=15)[source]
Call Multicall contract with a payload.
Single threaded
- Parameters
web3_factory –
Each thread will get its own web3 instance
batch_size – Don’t do more than this calls per one RPC.
multicall_contract (web3.contract.contract.Contract) –
calls (list['MulticallWrapper']) –
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) –
- Return type