Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_solana_prioritization_fees

Retrieve recent Solana transaction prioritization fees for specific accounts to optimize gas cost planning and network performance analysis.

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

  • Core handler implementation that retrieves the Solana RPC service and calls the 'getRecentPrioritizationFees' RPC method with optional addresses.
    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 ); }
  • Handler dispatch case in handleSolanaTool that parses arguments and delegates to SolanaService.getRecentPrioritizationFees, formats 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, }; }
  • Tool registration in registerSolanaHandlers, 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.
    { 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)', }, }, }, },

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