Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 }; }
  • 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;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ExpertVagabond/solana-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server