Documentation for eth_defi.event_reader.web3factory.Web3Factory Python class.

class Web3Factory[source]

Create a new Web3 connection.

  • Web3 connection cannot be passed across thread/process boundaries

  • Help to setup TCP/IP connections and Web3 instance over it in threads and processes

  • When each worker is initialised, the factory is called to get JSON-RPC connection

See Python documentation regarding typing.Protocol.

Methods summary

__init__(*args, **kwargs)

__init__(*args, **kwargs)