Caravan Documentation
    Preparing search index...

    Interface WasteCalculationParams

    interface WasteCalculationParams {
        coinAmounts: number[];
        config: {
            requiredSigners: number;
            scriptType: MultisigAddressType;
            totalSigners: number;
        };
        effectiveFeeRate: number;
        estimatedLongTermFeeRate: number;
        hasChange: boolean;
        spendAmount: number;
    }
    Index

    Properties

    coinAmounts: number[]
    config: {
        requiredSigners: number;
        scriptType: MultisigAddressType;
        totalSigners: number;
    }
    effectiveFeeRate: number
    estimatedLongTermFeeRate: number

    The long-term fee rate estimate which the wallet might need to pay to redeem remaining UTXOs. Reference : https://bitcoincore.reviews/17331#l-164 It is the upper bound for spending the UTXO in the future.

    hasChange: boolean

    Whether the transaction will have a change output. Change has to be spent at a later date adn so creates waste

    spendAmount: number

    The amount of satoshis wanted to be spent in the transaction. The exact amount of value the wallet wants to send to the recipient(s), not including fees and not including change.