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
| Name | Required | Description | Default |
|---|---|---|---|
| addresses | No | Optional: Account addresses to get fees for | |
| network | No | Network type (defaults to mainnet) |
Implementation Reference
- src/services/solana-service.ts:323-343 (handler)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 ); }
- src/handlers/solana-handlers.ts:357-372 (handler)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, }; }
- src/handlers/solana-handlers.ts:137-155 (registration)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)', }, }, }, },