Skip to main content
Glama

get_wallet_address

Retrieve your Solana wallet address to receive USDC funds or share for blockchain transactions on devnet.

Instructions

Get the agent's Solana wallet address. Use this to receive funds or share your address.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:26-33 (registration)
    Registration of the 'get_wallet_address' tool in the TOOLS array, including name, description, and input schema.
    name: "get_wallet_address", description: "Get the agent's Solana wallet address. Use this to receive funds or share your address.", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Input schema definition for the 'get_wallet_address' tool (empty object, no parameters).
    inputSchema: { type: "object", properties: {}, required: [], },
  • MCP tool handler for 'get_wallet_address': retrieves wallet address via AgentWallet and returns formatted JSON response with explorer link.
    case "get_wallet_address": { const address = wallet.getAddress(); return { content: [ { type: "text", text: JSON.stringify({ address, network: "devnet", explorer: `https://explorer.solana.com/address/${address}?cluster=devnet`, }, null, 2), }, ], }; }
  • Core helper method in AgentWallet class that returns the Solana public key as base58 string.
    getAddress(): string { return this.keypair.publicKey.toBase58(); }

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/noah-ing/agent-wallet-mcp'

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