LighterApiKey
Documentation for eth_defi.lighter.api_key.LighterApiKey Python class.
- class LighterApiKey
Bases:
objectA locally generated Lighter API-key pair.
The private scalar is intentionally excluded from
repr(). Store it only in an explicitly secret-bearing deployment report.Attributes summary
Lighter API-key slot, 4 through 254.
40-byte little-endian private scalar, hex encoded with a
0xprefix.40-byte little-endian ECgFp5 public key, hex encoded with a
0xprefix.Methods summary
__init__(api_key_index, private_key, public_key)- api_key_index: int
Lighter API-key slot, 4 through 254.
- private_key: str
40-byte little-endian private scalar, hex encoded with a
0xprefix.
- public_key: str
40-byte little-endian ECgFp5 public key, hex encoded with a
0xprefix.