Caravan Documentation
    Preparing search index...

    Interface TransactionInput

    Represents an input in a Bitcoin transaction. Transaction inputs are references to outputs of previous transactions that are being spent.

    interface TransactionInput {
        scriptSig: string;
        sequence: number;
        txid: string;
        vout: number;
        witness: string[];
    }
    Index

    Properties

    scriptSig: string

    The scriptSig of the input in hexadecimal format. For non-segwit inputs, this contains the unlocking script.

    sequence: number

    The sequence number of the input. This is used for relative time locks and signaling RBF.

    txid: string

    The transaction ID of the previous transaction containing the output being spent in big-endian format.

    vout: number

    The index of the output in the previous transaction that is being spent.

    witness: string[]

    The witness data for segwit inputs. This is an array of hex strings, each representing a witness element.