Configuration
Basic Configuration
interface WalletManagerConfig {
wallets?: SupportedWallet[] // Array of wallets to enable
networks?: Record<string, NetworkConfig> // Custom network configurations
defaultNetwork?: string // Network to use by default
options?: WalletManagerOptions // Additional options
}import { WalletManager, WalletId, NetworkId } from '@txnlab/use-wallet'
const manager = new WalletManager({
wallets: [WalletId.PERA, WalletId.DEFLY],
defaultNetwork: NetworkId.MAINNET // or just 'mainnet'
})Configuring Wallets
Network Configuration
Direct Network Configuration
Using NetworkConfigBuilder
Custom Networks
Network Configuration Details
Algod Configuration
Optional Properties
Manager Options
Complete Example
Next Steps
Last updated