wait_for_lighter_account

Documentation for eth_defi.lighter.api.wait_for_lighter_account function.

async wait_for_lighter_account(lighter, safe_address, timeout=900)

Wait until Lighter API exposes an account for an L1 owner.

Parameters
  • lighter (Any) – Imported Lighter SDK module.

  • safe_address (str) – L1 owner address, usually the Lagoon Safe.

  • timeout (int) – Maximum wait in seconds.

Returns

Lighter account index.

Return type

int