Mempool Transaction
Represents a transaction in the Bitcoin mempool.
This class contains the minimal information needed for fee estimation: the transaction's weight and the fee amount.
Example usage:
val transaction = MempoolTransaction(
weight = 565L, // Transaction weight in weight units
fee = 1000L // Fee amount in satoshis
)
// Get fee rate in sat/vB
val feeRate = transaction.getFeeRate()
Content copied to clipboard