wait_for_lighter_account
Documentation for eth_defi.lighter.api.wait_for_lighter_account function.
- wait_for_lighter_account(session, l1_address, timeout=900)
Wait for Lighter to expose a Safe-owned account.
An Ethereum L1 deposit is processed asynchronously by Lighter. This wait is observable through concise logs and terminates with
TimeoutErrorif the account never becomes visible.- Parameters
session (eth_defi.lighter.session.LighterSession) – Configured Lighter HTTP session.
l1_address (Union[eth_typing.evm.HexAddress, str]) – Safe address which owns the account.
timeout (int) – Maximum wait in seconds.
- Returns
Lighter account index.
- Return type