fetch_lighter_api_key
Documentation for eth_defi.lighter.api.fetch_lighter_api_key function.
- fetch_lighter_api_key(session, account_index, api_key_index, timeout=30.0)
Fetch one Lighter API-key record from the public account API.
- 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.
timeout (float) – Per-request timeout in seconds.
- Returns
Matching API-key response object, or
Noneif it is not visible.- Return type