create_connections

Documentation for eth_defi.lifi.top_up.create_connections function.

create_connections(config)

Create Web3 connections and wallet from configuration.

Parameters

config (eth_defi.lifi.top_up.TopUpConfig) – Top-up configuration

Returns

Tuple of (source_web3, target_web3s, wallet)

Return type

tuple[web3.main.Web3, dict[int, web3.main.Web3], eth_defi.hotwallet.HotWallet]