unwrap_lighter_account

Documentation for eth_defi.lighter.api.unwrap_lighter_account function.

unwrap_lighter_account(account)

Unwrap a Lighter account API response.

Parameters

account (Any) – Lighter account response. The SDK returns either a DetailedAccounts wrapper with an accounts list or the account object itself.

Returns

The first account object, or None if the response is empty.

Return type

Optional[Any]