Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_solana_account_info

Retrieve Solana account details including balance and transaction history from mainnet or testnet using Grove's blockchain data access.

Instructions

Get Solana account information

Input Schema

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

Implementation Reference

  • Handler case in handleSolanaTool that extracts arguments, calls SolanaService.getAccountInfo, and returns the formatted response for the MCP tool execution.
    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, }; }
  • Input schema and metadata definition for the 'get_solana_account_info' tool used in registration.
    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'], },
  • Supporting service method that performs the actual RPC call to get Solana account information.
    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