Helius SDK - v3.1.0
    Preparing search index...

    Function resolvePriorityFee

    • Resolves the priority fee a transaction should pay, in both the per-CU rate that legacy/v0 transactions request and the total lamport amount that version 1 transactions carry in their header config (SIMD-0385).

      Both caps are applied by clamping the rate, so the returned rate and lamports always describe the same fee regardless of transaction version.

      The rate is floored to a whole microLamport. Helius can return a fractional estimate, and the compute-budget instruction encodes the rate as a u64 — passing a fraction there throws. Rounding down rather than to nearest also keeps rateCap and lamportsCap true ceilings.

      Parameters

      Returns ResolvedPriorityFee