NEXO
Launch App
Back to Docs
Wallet Management4 min read

Multi-Wallet Support

Managing multiple wallets with NEXO

Multiple Wallet Connections

NEXO supports connecting and managing multiple wallets simultaneously.

Adding Wallets

typescript
// Add multiple wallets
client.addWallet(wallet1);
client.addWallet(wallet2);

// Set active wallet
client.setActiveWallet(wallet1.publicKey);

// Execute with specific wallet
await client.swap({
  ...params,
  wallet: wallet2.publicKey
});

Wallet Switching

Easily switch between connected wallets without reconnecting:

typescript
// List connected wallets
const wallets = client.getConnectedWallets();
// ['wallet1...', 'wallet2...']

// Switch active wallet
client.setActiveWallet(wallets[1]);

Per-Wallet Settings

Configure different settings for each wallet:

typescript
client.setWalletConfig(wallet1.publicKey, {
  protection: 'maximum',
  dailyLimit: 10 // SOL
});

client.setWalletConfig(wallet2.publicKey, {
  protection: 'standard',
  dailyLimit: 100 // SOL
});