From 523351b7ad799e23eb48ce23740d9c195f1250cb Mon Sep 17 00:00:00 2001 From: Hasan Bal Date: Mon, 11 Aug 2025 12:57:34 -0400 Subject: [PATCH 1/2] Update default api_key_index to 2. --- examples/system_setup.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/system_setup.py b/examples/system_setup.py index 0c047a5..5ec5b82 100644 --- a/examples/system_setup.py +++ b/examples/system_setup.py @@ -10,7 +10,7 @@ # It serves as a good example BASE_URL = "https://testnet.zklighter.elliot.ai" ETH_PRIVATE_KEY = "1234567812345678123456781234567812345678123456781234567812345678" -API_KEY_INDEX = 1 +API_KEY_INDEX = 2 async def main(): @@ -20,7 +20,9 @@ async def main(): eth_address = eth_acc.address try: - response = await lighter.AccountApi(api_client).accounts_by_l1_address(l1_address=eth_address) + response = await lighter.AccountApi(api_client).accounts_by_l1_address( + l1_address=eth_address + ) except lighter.ApiException as e: if e.data.message == "account not found": print(f"error: account not found for {eth_address}") @@ -31,7 +33,9 @@ async def main(): if len(response.sub_accounts) > 1: for sub_account in response.sub_accounts: print(f"found accountIndex: {sub_account.index}") - raise Exception(f"found found multiple account indexes: {len(response.sub_accounts)}") + raise Exception( + f"found found multiple account indexes: {len(response.sub_accounts)}" + ) else: account_index = response.sub_accounts[0].index From 6b39cefcb7d7e8fcb0f2e08d3582c1932ef9a27b Mon Sep 17 00:00:00 2001 From: Hasan Bal Date: Mon, 11 Aug 2025 13:20:36 -0400 Subject: [PATCH 2/2] bump one more --- examples/system_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/system_setup.py b/examples/system_setup.py index 5ec5b82..c172be3 100644 --- a/examples/system_setup.py +++ b/examples/system_setup.py @@ -10,7 +10,7 @@ # It serves as a good example BASE_URL = "https://testnet.zklighter.elliot.ai" ETH_PRIVATE_KEY = "1234567812345678123456781234567812345678123456781234567812345678" -API_KEY_INDEX = 2 +API_KEY_INDEX = 3 async def main():