display_balances
Documentation for eth_defi.lifi.top_up.display_balances function.
- display_balances(source_web3, target_web3s, wallet, config)
Fetch and display gas balances across all chains.
Shows a table with native token balance, USD value, USDC balance (for source chain), and status (OK/LOW) for each chain.
- Parameters
source_web3 (web3.main.Web3) – Web3 connection to the source chain
target_web3s (dict[int, web3.main.Web3]) – Dict mapping chain_id to Web3 connection
wallet (eth_defi.hotwallet.HotWallet) – Hot wallet to check balances for
config (eth_defi.lifi.top_up.TopUpConfig) – Top-up configuration