Skip to main content
Glama

create_wallet

Generate a new Solana wallet with a custom name to manage blockchain assets and execute transactions on the Solana network.

Instructions

Create a new Solana wallet

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName for the wallet

Implementation Reference

  • src/index.ts:74-87 (registration)
    Tool registration in the tools array, defining name, description, and input schema for create_wallet.
    { name: "create_wallet", description: "Create a new Solana wallet", inputSchema: { type: "object", properties: { name: { type: "string", description: "Name for the wallet" } }, required: ["name"] } },
  • The handler function that creates a new Solana wallet by generating a Keypair, storing it in the wallets map under the given name, and returning the wallet details including address and base58-encoded private key.
    async function handleCreateWallet(args: any) { const { name } = args; if (wallets.has(name)) { throw new Error(`Wallet with name '${name}' already exists`); } const keypair = Keypair.generate(); wallets.set(name, { keypair, name }); return { success: true, wallet: { name, address: keypair.publicKey.toString(), privateKey: bs58.encode(keypair.secretKey) } }; }
  • src/index.ts:1285-1287 (registration)
    Switch case in the CallToolRequestSchema handler that dispatches to the create_wallet handler function.
    case "create_wallet": result = await handleCreateWallet(args); 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