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

    Interface CreateSmartTxWithTipInput

    Input for createSmartTransactionWithTip — adds a Sender tip instruction.

    interface CreateSmartTxWithTipInput {
        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>[];
        tipAmount?: number;
        version?: TransactionVersion;
    }

    Hierarchy (View Summary)

    Index

    Properties

    bufferPct?: number
    commitment?: Commitment

    Commitment for fetching the blockhash. Default: "confirmed".

    feePayer?: Address | TransactionSigner<string>

    Optional fee-payer override (Address or TransactionSigner).

    instructions: readonly Instruction<string, readonly any[]>[]

    Program instructions (no compute-budget ixs needed — we'll add them).

    minUnits?: number

    CU floor & simulation buffer. Defaults: 1_000 / 10%.

    priorityFeeCap?: number

    Optional cap (microlamports per CU) applied to Helius' recommendation. Applies to every version — on version 1 the capped rate is what gets converted into the total lamport fee.

    priorityFeeLamportsCap?: number | bigint

    Optional cap on the total priority fee in lamports.

    Version 1 pays a total amount rather than a per-CU rate, so this is the natural unit to budget in. It is applied after priorityFeeCap by clamping the per-CU rate, so it constrains legacy and v0 transactions too.

    signers: readonly TransactionSigner<string>[]

    All required signers. First signer is the default fee-payer.

    tipAmount?: number

    Tip amount in lamports. Defaults to the Sender Max minimum (1,000,000 = 0.001 SOL).

    version?: TransactionVersion

    Tx version. Default: 0. Pass 1 for the 4,096-byte limit.