fetch_lighter_account_by_index
Documentation for eth_defi.lighter.valuation.fetch_lighter_account_by_index function.
- fetch_lighter_account_by_index(session, account_index, timeout=30.0)
Fetch a raw Lighter account dict by account index.
- Parameters
session (eth_defi.lighter.session.LighterSession) – Lighter HTTP session.
account_index (int) – Lighter account index.
timeout (float) – HTTP request timeout.
- Returns
Raw account dict from the first
accountsresponse item.- Raises
ValueError – If the response contains no accounts.
- Return type