fetch_crosschain_gas_balances
Documentation for eth_defi.lifi.crosschain.fetch_crosschain_gas_balances function.
- fetch_crosschain_gas_balances(target_web3s, wallet_address, api_timeout=30)
Fetch native token balances and their USD values across chains.
- Parameters
- Returns
Tuple of (balances_native, balances_usd) where each is a dict mapping chain_id to balance.
balances_nativeis in native token units (e.g. ETH),balances_usdis the USD equivalent.- Return type
tuple[dict[int, decimal.Decimal], dict[int, decimal.Decimal]]