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

    Type Alias CreateSmartTxInput

    CreateSmartTxInput: Readonly<
        {
            bufferPct?: number;
            commitment?: Commitment;
            feePayer?: Address
            | TransactionSigner<string>;
            instructions: readonly Instruction<string, readonly any[]>[];
            minUnits?: number;
            priorityFeeCap?: number;
            priorityFeeLamportsCap?: number | bigint;
            signers: readonly TransactionSigner<string>[];
            version?: SupportedTxVersion;
        },
    >

    Input for createSmartTransaction. The SDK automatically simulates compute units and fetches priority fees before signing.

    On "legacy" and 0 the compute-unit limit and price are prepended as ComputeBudgetProgram instructions. On version 1 they are written to the transaction's header config instead — no compute-budget instructions are emitted, since SIMD-0385 makes them no-ops that still cost bytes and CUs.