Indicates whether CPFP (Child-Pays-For-Parent) is possible for this transaction.
Indicates whether RBF is possible for this transaction.
The estimated fee required for a successful CPFP, in satoshis.
The estimated fee required for a successful RBF, in satoshis.
The total fee of the transaction in satoshis.
The fee rate of the transaction in satoshis per virtual byte.
An array of the transaction's inputs.
Indicates whether the transaction signals RBF (Replace-By-Fee).
An array of the transaction's outputs.
The recommended fee bumping strategy for this transaction.
The transaction ID (hash) of the analyzed transaction.
The virtual size of the transaction in virtual bytes (vBytes).
The weight of the transaction in weight units (WU).
Represents the comprehensive analysis of a Bitcoin transaction. This interface encapsulates various metrics and properties of a transaction, including size, fees, RBF and CPFP capabilities, and recommended fee bump strategy.
TxAnalysis
Remarks
vsizeandweightproperties are important for fee calculation in segwit transactions.isRBFSignaledis true if at least one input has a sequence number < 0xfffffffe.canRBFconsiders both RBF signaling and the availability of inputs for replacement.canCPFPis true if there's at least one unspent output that can be used for a child transaction.recommendedStrategyis based on the current transaction state and network conditions.estimatedRBFFeeandestimatedCPFPFeeare calculated based on current network fee rates and minimum required increases.Example