create_lighter_signer_client
Documentation for eth_defi.lighter.sdk.create_lighter_signer_client function.
- create_lighter_signer_client(account_index, api_key_index, api_private_key, api_url='https://mainnet.zklighter.elliot.ai')
Create an official SDK signer bound to one Lighter account and API key.
The SDK client opens an
aiohttpsession in its constructor, so call this inside a running asyncio event loop, for example at the start of the coroutine that uses the client. The returned client holds the private key in memory: close it withawait client.close()when done and never log the client or its key.See the SignerClient source.
- Parameters
- Returns
A
lighter.SignerClientinstance.- Return type