wait_for_lighter_api_key

Documentation for eth_defi.lighter.api.wait_for_lighter_api_key function.

wait_for_lighter_api_key(session, account_index, api_key_index, expected_public_key, timeout=300)

Wait until Lighter exposes a registered API key matching a public key.

Parameters
  • session (eth_defi.lighter.session.LighterSession) – Configured Lighter HTTP session.

  • account_index (int) – Lighter account index.

  • api_key_index (int) – Requested API-key slot.

  • expected_public_key (str) – Locally generated public key, encoded as hexadecimal.

  • timeout (int) – Maximum wait in seconds.

Returns

None once the exact key is visible.

Return type

None