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
| Name | Required | Description | Default |
|---|---|---|---|
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: [], }, },
- src/index.ts:28-32 (schema)Input schema definition for the 'get_wallet_address' tool (empty object, no parameters).inputSchema: { type: "object", properties: {}, required: [], },
- src/index.ts:119-133 (handler)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), }, ], }; }
- src/wallet.ts:102-104 (helper)Core helper method in AgentWallet class that returns the Solana public key as base58 string.getAddress(): string { return this.keypair.publicKey.toBase58(); }