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 TimeoutError if the account never becomes visible.

Parameters
Returns

Lighter account index.

Return type

int