list_wallets
Retrieve all created and imported Solana wallets to manage blockchain interactions and account operations across multiple networks.
Instructions
List all created/imported wallets
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:571-581 (handler)The core handler function that executes the list_wallets tool logic. It maps over the in-memory wallets Map and returns wallet names and public key addresses.async function handleListWallets() { const walletList = Array.from(wallets.values()).map(wallet => ({ name: wallet.name, address: wallet.keypair.publicKey.toString() })); return { wallets: walletList, count: walletList.length }; }
- src/index.ts:106-113 (schema)The tool definition including name, description, and input schema (empty object since no parameters required). This is used for tool listing and validation.{ name: "list_wallets", description: "List all created/imported wallets", inputSchema: { type: "object", properties: {} } },
- src/index.ts:1291-1293 (registration)Registration in the central tool dispatcher switch statement, routing calls to the handleListWallets function.case "list_wallets": result = await handleListWallets(); break;