getRecentPrioritizationFees
The getRecentPrioritizationFees method returns a list of recent prioritization fees for specified accounts or for the entire network. Prioritization fees (also called priority fees) allow transaction senders to pay extra fees to increase the likelihood their transactions are included quickly during network congestion.
Solana's fee market includes base transaction fees (fixed) and optional prioritization fees (variable). During high network activity, validators prioritize transactions with higher prioritization fees. This method provides insight into recent prioritization fee levels, helping developers and users determine appropriate fees to ensure timely transaction processing. The data shows the distribution of fees being paid, enabling smart fee estimation strategies.
This method is crucial for wallets, DEXes, NFT minting platforms, and any application that needs to optimize transaction inclusion during competitive periods. By analyzing recent fees paid for specific accounts or globally, applications can recommend optimal priority fees to users, balancing cost with urgency. This leads to better user experiences and more reliable transaction processing.
Parameters
parameter | type | description |
|---|---|---|
accountAddresses | array | Optional. Array of account addresses as base-58 encoded strings (maximum 128 addresses). If empty or omitted, returns network-wide prioritization fees |
Return Object
field | type | description |
|---|---|---|
result | array | Array of recent prioritization fee objects, covering approximately the last 150 slots |
result[].slot | number | Slot in which the fee was observed |
result[].prioritizationFee | number | The per-compute-unit prioritization fee paid, in micro-lamports (1 lamport = 1,000,000 micro-lamports) |
Request Example
Response Example
Tip: Fees are in micro-lamports per compute unit. To calculate total priority fee: (prioritizationFee * computeUnitsUsed) / 1,000,000. Common strategy: use the median or 75th percentile of recent fees. Zero fees indicate no congestion. Query specific program accounts for more relevant fee estimates.