register_lighter_api_key
Documentation for eth_defi.lighter.api.register_lighter_api_key function.
- async register_lighter_api_key(lighter, web3, safe, hot_wallet, account_index, api_key_index)
Generate and register a Lighter API key through a Safe.
- Parameters
lighter (Any) – Imported Lighter SDK module.
web3 (web3.main.Web3) – Web3 connection.
safe (safe_eth.safe.safe.Safe) – Safe that owns the Lighter account.
hot_wallet (eth_defi.hotwallet.HotWallet) – 1-of-1 Safe owner.
account_index (int) – Lighter account index.
api_key_index (int) – Lighter API-key slot.
- Returns
SDK API private key.
- Return type