Swig TS — API References
    Preparing search index...

    Type Alias InstructionDataOptions

    Options used for constructing or signing instruction data.

    type InstructionDataOptions = {
        currentSlot?: bigint;
        odometer?: number;
        payer?: SolPublicKeyData;
        postInstructions?: SolInstruction[];
        preInstructions?: SolInstruction[];
        signingFn?: SigningFn;
    }
    Index

    Properties

    currentSlot?: bigint

    current slot.

    odometer?: number

    Transaction fee payer. Used by secp256r1/secp256k1 authorities to ensure the payer account is marked as a signer before computing the message hash, matching the Solana runtime behavior. See https://github.com/anagrambuild/swig-ts/issues/107

    postInstructions?: SolInstruction[]

    Instructions to append after the swig instruction.

    preInstructions?: SolInstruction[]

    Instructions to prepend before the swig instruction.

    signingFn?: SigningFn