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
What is Max Priority Fee?
What is Max Priority Fee?
A mode where DFlow automatically selects the optimal fee but ensures it
never exceeds the cap you set.
How should I set maxLamports?
How should I set maxLamports?
Choose a value high enough for fast execution under congestion, but not so
high that you risk overpaying.
What happens if the optimal fee is above my max?
What happens if the optimal fee is above my max?
The swap may be delayed if your maximum is too low for current conditions.