How the prioritization fee is calculated
- Prioritization fee = compute unit limit * compute unit price (measured in micro-lamports).
- These values can be set once per transaction by including the following Compute Budget instructions:
- SetComputeUnitLimit: setting the maximum number of compute units the transaction can consume
- SetComputeUnitPrice: setting the desired additional fee the transaction is willing to pay to boost its prioritization.
- If no SetComputeUnitLimit instruction is provided, the default compute unit limit will be used. (unit = 200000).
- If no SetComputeUnitPrice instruction is provided, the transaction will default to no additional elevated fee and the lowest priority (i.e. no prioritization fee).