auto-detect existing wallets, show selectable list on startup

This commit is contained in:
2026-05-17 10:51:22 +08:00
parent 23b7447b92
commit 880199f096
5 changed files with 83 additions and 8 deletions
+7
View File
@@ -623,6 +623,13 @@ const rpc = BrowserView.defineRPC<RPC>({
console.log(`[rpc] moneroGetAccounts: ${accounts.length} accounts`)
return accounts
},
moneroListWallets: async () => {
console.log('[rpc] moneroListWallets')
if (!moneroManager) throw new Error('Monero wallet RPC not started')
const wallets = moneroManager.listWallets()
console.log(`[rpc] moneroListWallets: ${wallets.join(', ') || 'none'}`)
return wallets
},
},
messages: {},
},