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

    Interface GetComputeUnitsOpts

    Options for the compute-unit simulation step.

    interface GetComputeUnitsOpts {
        bufferPct?: number;
        min?: number;
    }
    Index

    Properties

    Properties

    bufferPct?: number

    Buffer percentage added on top of simulated CU. Defaults to 0.1 (10%).

    min?: number

    Minimum CU floor for very small transactions. Defaults to 1,000. The result is clamped to [1, 1.4M]: a 0-CU limit is literal on version 1 (SIMD-0385) and fails on-chain, and 1.4M is the protocol's request cap.