Documentation Index
Fetch the complete documentation index at: https://docs.lfg.land/llms.txt
Use this file to discover all available pages before exploring further.
Overview
LocalWallet handles cryptographic key management and transaction signing for the LFG SDK.
Static Methods
fromMnemonic()
Create a wallet from a BIP39 mnemonic phrase.12 or 24-word BIP39 mnemonic phrase
Address prefix (use
"lfg" for LFG DEX)Promise<LocalWallet>
fromPrivateKey()
Create a wallet from a private key.Private key as hex string (with or without
0x prefix)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