Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_solana_account_info

Retrieve Solana account details including balance and data by providing a wallet address and network selection.

Instructions

Get Solana account information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesSolana address
networkNoNetwork type (defaults to mainnet)

Implementation Reference

  • Executes the get_solana_account_info tool by extracting parameters and delegating to SolanaService.getAccountInfo
    case 'get_solana_account_info': { const address = args?.address as string; const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet'; const result = await solanaService.getAccountInfo(address, network); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], isError: !result.success, }; }
  • Registers the get_solana_account_info tool with its input schema and description
    { name: 'get_solana_account_info', description: 'Get Solana account information', inputSchema: { type: 'object', properties: { address: { type: 'string', description: 'Solana address', }, network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, required: ['address'], }, },
  • Core implementation of getAccountInfo RPC call to Solana RPC endpoint with jsonParsed encoding
    /** * Get account info */ async getAccountInfo( address: string, network: 'mainnet' | 'testnet' = 'mainnet' ): Promise<EndpointResponse> { const service = this.blockchainService.getServiceByBlockchain('solana', network); if (!service) { return { success: false, error: `Solana service not found for ${network}`, }; } return this.blockchainService.callRPCMethod( service.id, 'getAccountInfo', [ address, { encoding: 'jsonParsed', }, ] ); }

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/buildwithgrove/mcp-pocket'

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