Overview
LocalWallet handles cryptographic key management and transaction signing for the LFG SDK.
Static Methods
fromMnemonic()
Create a wallet from a BIP39 mnemonic phrase.string
required
12 or 24-word BIP39 mnemonic phrase
string
required
Address prefix (use
"lfg" for LFG DEX)Promise<LocalWallet>
fromPrivateKey()
Create a wallet from a private key.string
required
Private key as hex string (with or without
0x prefix)string
required
Address prefix (use
"lfg")Promise<LocalWallet>
Properties
address
The wallet’s public address.string
pubKey
The wallet’s public key.PubKey | undefined
Usage Examples
Environment Variables
Wallet Factory
Related
Wallets Guide
Complete wallet management guide
SubaccountInfo
Create trading subaccounts
Security
Security best practices