SimpleWeb3Factory

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

class SimpleWeb3Factory[source]

Single reusable Web3 connection.

  • Does not work for multithreaded use cases, because Web3 object with TCP/IP connection is not passable across thread or process boundaries

  • Useful for testing

Methods summary

__init__(web3)

__init__(web3)[source]
Parameters

web3 (web3.main.Web3) –