Caravan Documentation
    Preparing search index...

    Interface AnalyzerOptions

    Configuration options for the TransactionAnalyzer.

    TXID Format Convention: All transaction hex data and TXID references provided to this analyzer should use big-endian format (human-readable format).

    interface AnalyzerOptions {
        absoluteFee: string;
        addressType: MultisigAddressType;
        availableUtxos: UTXO[];
        changeOutputIndex?: number;
        incrementalRelayFeeRate?: number;
        network: Network;
        requiredSigners: number;
        targetFeeRate: number;
        totalSigners: number;
        txHex: string;
    }
    Index

    Properties

    absoluteFee: string

    The absolute fee of the original transaction in satoshis. This is used as the basis for fee calculations and comparisons.

    addressType: MultisigAddressType

    The type of Bitcoin address used (e.g., P2PKH, P2SH, P2WPKH, P2WSH). This is used to determine the input size for different address types when estimating transaction size.

    availableUtxos: UTXO[]

    An array of Unspent Transaction Outputs (UTXOs) that are available for fee bumping. These are potential inputs that can be added to a replacement transaction in RBF, or used to create a child transaction in CPFP.

    changeOutputIndex?: number

    The index of the change output in the transaction, if known. This helps identify which output is the change and can be adjusted for fee bumping in RBF scenarios.

    incrementalRelayFeeRate?: number

    The incremental relay fee-rate in satoshis per vbyte. This is the minimum fee rate increase required for nodes to accept a replacement transaction. It's used in RBF calculations to ensure the new transaction meets network requirements. Default value in Bitcoin Core is 1 sat/vbyte.

    network: Network

    The Bitcoin network to use (mainnet, testnet, or regtest).

    requiredSigners: number

    The number of signatures required in a multisig setup. This is used to estimate transaction size more accurately for multisig transactions.

    targetFeeRate: number

    The target fee rate in satoshis per vbyte that the user wants to achieve. This is used to determine if fee bumping is necessary and to calculate the new fee for RBF or CPFP.

    totalSigners: number

    The total number of signers in a multisig setup. This is used along with requiredSigners to estimate transaction size more accurately for multisig transactions.

    txHex: string

    The hexadecimal representation of the raw transaction. This is used for parsing the transaction details directly from the hex .