Solana Priority Fee API: Smart Transaction Fee Estimation
Estimate optimal priority fees for Solana transactions. Real-time fee analysis with six priority levels to ensure fast confirmation and cost efficiency.
Save money, improve performance: Get precise priority fee estimates based on real-time network conditions. Pay only what you need for the speed you want.
What Are Priority Fees?
On Solana, priority fees allow your transactions to jump ahead in the validator queue during network congestion. Think of them as express lanes for your transactions.
Base Fees vs Priority Fees
Base fees are fixed costs for transaction processing
Priority fees are optional payments for faster processing
How They Work
You set a price per compute unit - higher prices get processed first during network congestion
Why Use Priority Fees
Priority fees are now a standard part of Solana transactions, helping ensure reliable confirmation times and optimal network performance.
Reliable Confirmation
Ensure your transactions confirm quickly and reliably, even during varying network conditions
Competitive Edge
Stay competitive in time-sensitive operations like trading, minting, and DeFi interactions
User Experience
Provide consistent, fast transaction processing for better user experience
Network Efficiency
Help optimize network resource allocation and overall performance
Priority Levels Explained
Our API provides six priority levels based on recent network activity:
Min
Min
Lowest observed fee - Based on minimum fees seen in recent slots
Best for: Non-urgent transactions when cost optimization is priority
Note: May result in slower confirmation times
Low
Low
25th percentile - Budget-friendly option with reasonable confirmation times
Best for: Standard operations where speed isn’t critical
Note: Good balance of cost and reliability
Medium (Recommended)
Medium (Recommended)
50th percentile - Median fee providing reliable confirmation times
Best for: Most applications and general use cases
Note: Recommended starting point for most developers
High
High
75th percentile - Higher fees for faster processing
Best for: Time-sensitive operations and competitive scenarios
Note: Prioritized processing during network activity
VeryHigh
VeryHigh
95th percentile - Premium fees for maximum speed
Best for: Critical operations, MEV strategies, urgent transactions
Note: Fast confirmation even during high network activity
UnsafeMax
UnsafeMax
Maximum observed - Highest fees seen in recent slots
Best for: Emergency situations only
Warning: Often unnecessarily high - use with caution
Cost Calculation: Total priority fee = Price per compute unit × Compute units consumed
A typical transaction uses 200,000-400,000 compute units. At current Medium level (~40,000 microlamports per unit), that’s 0.008-0.016 SOL in priority fees. Always check current network conditions for accurate estimates.
Implementation Methods
Serialized Transaction (Recommended)
Primary Method - Analyzes your exact transaction for maximum accuracy
Best for: Most applications and production use cases
Benefits:
- Instruction-specific analysis
- Highest accuracy
- Production-ready
- Considers transaction complexity
Account Keys (Advanced)
Specialized Use Cases - Estimates based on account patterns
Best for: Pre-transaction analysis, batch operations, specialized architectures
Benefits:
- Account-level pattern analysis
- Useful for planning and research
- Batch account analysis
Quick Start Example
API Reference
getPriorityFeeEstimate
Complete API documentation with all parameters and response formats
Implementation Guides
Serialized Transaction Method
Comprehensive guide for the recommended transaction-based estimates
Account Keys Method
Advanced guide for specialized account-based estimates
Real-Time Network Monitoring
Pro tip: Monitor network conditions to optimize your priority fee strategy. During normal conditions, use lower priority levels. During congestion, consider higher levels for time-sensitive operations.
You can check current network conditions using Solana explorers or the getRecentPerformanceSamples
RPC method.