• Updated every 10 seconds
  • support@feesol.org
  • feesol.org
Solana Fee API

Solana Fee API – Programmatic Fee Data Access

FeeSol aggregates Solana fee data from multiple RPC nodes and presents it in an easy-to-consume format. For developers building dApps, trading bots, or wallets on Solana, accessing accurate fee data programmatically is essential for setting the right priority fee and ensuring reliable transaction execution.

Solana's native RPC provides several methods for fee estimation. The most commonly used are getRecentPrioritizationFees, which returns fee data from recent blocks for specified accounts, and the newer getPriorityFeeEstimate endpoint offered by enhanced RPC providers like Helius and QuickNode.

Key RPC Methods for Fee Estimation

Using the correct RPC method for your use case significantly improves transaction success rates. Stale fee data is one of the most common causes of transaction failures and unnecessary overpayment on Solana.

Solana Fee API Reference

Essential RPC methods for Solana fee estimation in your application or trading system.

  • getRecentPrioritizationFees – returns fees from last 150 blocks for given accounts
  • getFeeForMessage – returns the exact fee for a serialized transaction message
  • getPriorityFeeEstimate (Helius/QuickNode) – percentile-based fee recommendations
  • simulateTransaction – simulate before sending to verify CU consumption

Best Practices for Fee Estimation

Accurate fee estimation on Solana requires using account-specific data. Generic network-wide fee averages can significantly overestimate fees for accounts with low competition and underestimate for hot accounts like major DEX pools during peak trading.

For the best results, pass your transaction's writable accounts to getRecentPrioritizationFees or getPriorityFeeEstimate. Use the 75th–90th percentile fee as your target to ensure reliable landing without extreme overpayment. Always simulate your transaction first to determine the actual compute unit consumption before setting your CU limit.

Fee Estimation Strategies