Skip to main content
Max Priority Fee allows DFlow to dynamically choose an optimal fee, up to the maximum you specify. This balances execution speed with cost, ensuring you never pay more than your set limit.
To use Max Priority Fee on the Create Swap endpoint, set the prioritizationFeeLamports parameter to "auto" (capped at 0.005 SOL) or to an object with priorityLevelWithMaxLamports containing priorityLevel and your chosen maxLamports.On the Get Intent Quote endpoint, you can cap auto fees by setting the maxAutoFeeBudget parameter.

How It Works

  • priorityLevel (medium, high, veryHigh) tells DFlow how aggressively to prioritize the swap.
  • maxLamports defines the maximum fee you are willing to pay.
  • DFlow selects an optimal fee based on network congestion, capped by your maximum.
If both computeUnitPriceMicroLamports and prioritizationFeeLamports are unspecified, the default is prioritizationFeeLamports: "auto" (capped at 0.005 SOL).

Frequently Asked Questions

A mode where DFlow automatically selects the optimal fee but ensures it never exceeds the cap you set.
Choose a value high enough for fast execution under congestion, but not so high that you risk overpaying.
The swap may be delayed if your maximum is too low for current conditions.

Get Started with the Swap API Today