execute_crosschain_swaps

Documentation for eth_defi.lifi.crosschain.execute_crosschain_swaps function.

execute_crosschain_swaps(wallet, source_web3, swaps, progress=True, max_quote_age_seconds=120)

Execute prepared cross-chain gas top-up swaps sequentially.

Signs and broadcasts each swap transaction on the source chain. Waits for each transaction to confirm before proceeding to the next.

If a quote is older than max_quote_age_seconds (checked via is_valid()), it is automatically re-fetched before execution.

Parameters
Returns

List of results with transaction hashes

Raises

Reverted – If any transaction fails on-chain

Return type

list[eth_defi.lifi.crosschain.CrossChainSwapResult]