To use Exact Priority Fee on the
Create Swap
endpoint, set the
prioritizationFeeLamports
parameter to your desired priority fee.To set an Exact Priority Fee using the
Get Intent Quote
endpoint, set the feeBudget
parameter to your desired priority fee plus
the base processing fee (10,000 lamports).When using Get Intent
Quote, remember
to add the base processing fee (10,000 lamports) to your desired priority fee
when setting
feeBudget
. Example: For a 5,000 lamport priority fee, set
feeBudget
to 15,000 lamports.How It Works
- The fee you specify will always be applied.
- No automatic adjustments are made.
- If the network requires higher fees, your swap may be delayed or fail.
The priority fee must always be at least 1 lamport; otherwise the swap will
never be processed.
Frequently Asked Questions
What is Exact Priority Fee?
What is Exact Priority Fee?
A mode where the fee is fixed and always set to the specified value.
When should I use Exact Priority Fee?
When should I use Exact Priority Fee?
When you need predictable costs and are comfortable with the risk of delayed
execution if the fee is too low.
How do I choose between Exact and Max Priority Fees?
How do I choose between Exact and Max Priority Fees?
If you need full control over the exact lamports paid per transaction (e.g. for cost predictability or strict budgeting), use Exact. If you prefer the network to dynamically adjust fees for speed while still respecting a maximum cap, use Max.