Cashu-TS - v3.3.0
    Preparing search index...

    Type Alias SwapPreview

    Preview of a swap transaction created by prepareSend / prepareReceive.

    type SwapPreview = {
        amount: number;
        fees: number;
        inputs: Proof[];
        keepOutputs?: OutputDataLike[];
        keysetId: string;
        sendOutputs?: OutputDataLike[];
        unselectedProofs?: Proof[];
    }
    Index

    Properties

    amount: number

    Amount being sent or received (excluding fees).

    fees: number

    Total fees for the swap (inc receiver's fees if applicable)

    inputs: Proof[]

    Input Proofs for this transaction.

    keepOutputs?: OutputDataLike[]

    Blinding data to construct proofs to keep.

    keysetId: string

    Keyset ID used to prepare the outputs.

    sendOutputs?: OutputDataLike[]

    Blinding data to construct proofs to send.

    unselectedProofs?: Proof[]

    Proofs not selected for this transaction (can be returned to storage).