Caravan Documentation
    Preparing search index...

    Use PsbtV2 from @caravan/psbt instead:

    import { PsbtV2 } from "@caravan/psbt";
    

    This copy is unmaintained, is missing the BIP0370 role-readiness guards, toV0, combine, setInputSequence and isRBFSignaled, and drops a sequence of 0 in addInput. See the notice at the top of this module. It will be removed.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    globalMap: Map<string, Buffer> = ...
    inputMaps: Map<string, Buffer>[] = []
    outputMaps: Map<string, Buffer>[] = []

    Accessors

    • get PSBT_GLOBAL_XPUB(): NonUniqueKeyTypeValue[] | NonUniqueKeyTypeValue[][]

      Globals Getters/Setters

      Returns NonUniqueKeyTypeValue[] | NonUniqueKeyTypeValue[][]

    Methods

    • Parameters

      • __namedParameters: {
            bip32Derivation?: {
                masterFingerprint: Buffer;
                path: string;
                pubkey: Buffer;
            }[];
            nonWitnessUtxo?: Buffer;
            outputIndex: number;
            previousTxId: string
            | Buffer;
            redeemScript?: Buffer;
            sequence?: number;
            witnessScript?: Buffer;
            witnessUtxo?: { amount: number; script: Buffer };
        }

      Returns void

    • Parameters

      • __namedParameters: {
            amount: number;
            bip32Derivation?: {
                masterFingerprint: Buffer;
                path: string;
                pubkey: Buffer;
            }[];
            redeemScript?: Buffer;
            script: Buffer;
            witnessScript?: Buffer;
        }

      Returns void