Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_solana_prioritization_fees

Retrieve recent Solana transaction prioritization fees to optimize network costs. Query fees for specific accounts or networks using Grove's MCP Server.

Instructions

Get recent prioritization fees for Solana transactions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressesNoOptional: Account addresses to get fees for
networkNoNetwork type (defaults to mainnet)

Implementation Reference

  • Handler logic in handleSolanaTool switch statement that extracts arguments, calls SolanaService.getRecentPrioritizationFees, and formats the response.
    case 'get_solana_prioritization_fees': { const addresses = args?.addresses as string[] | undefined; const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet'; const result = await solanaService.getRecentPrioritizationFees(addresses, network); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], isError: !result.success, }; }
  • Core service method that invokes the Solana RPC 'getRecentPrioritizationFees' via the blockchain RPC service, handling optional addresses parameter.
    async getRecentPrioritizationFees( addresses?: 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}`, }; } const params = addresses ? [addresses] : []; return this.blockchainService.callRPCMethod( service.id, 'getRecentPrioritizationFees', params ); }
  • Tool registration in registerSolanaHandlers function, defining name, description, and input schema.
    { name: 'get_solana_prioritization_fees', description: 'Get recent prioritization fees for Solana transactions', inputSchema: { type: 'object', properties: { addresses: { type: 'array', items: { type: 'string' }, description: 'Optional: Account addresses to get fees for', }, network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, }, },
  • Input schema definition for the tool, specifying optional addresses array and network enum.
    inputSchema: { type: 'object', properties: { addresses: { type: 'array', items: { type: 'string' }, description: 'Optional: Account addresses to get fees for', }, network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, },

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