Estimate priority fees for Solana transactions.
The Helius Priority Fee API helps you determine the appropriate priority fees for your Solana transactions. Priority fees allow your transactions to be processed faster during network congestion by incentivizing validators to include your transactions before others with lower fees.
On Solana, each transaction has a base fee. Priority fees are additional fees you can pay to prioritize your transaction in the validator’s queue. You set a price for each compute unit your transaction may use - the higher the price, the more likely your transaction will be processed before others.
Priority fees are essential for:
Get accurate fee estimates based on current network conditions
The Priority Fee API analyzes recent transactions to calculate appropriate fee levels. It provides estimates at several priority levels:
There are two ways to implement the Priority Fee API:
Provide a fully serialized transaction for the most accurate fee estimates tailored to your specific transaction.
Supply the account keys involved in your transaction when a serialized transaction is not available.
You can also customize your fee estimates with options like lookback period, priority level, and more.