Class DefaultFixedFeeCalculator

java.lang.Object
foundation.omni.tx.DefaultFixedFeeCalculator
All Implemented Interfaces:
FeeCalculator

public class DefaultFixedFeeCalculator extends Object implements FeeCalculator
Trivial fee calculator that always uses the recommended minimum fee Provides backwards compatibility with previous implementations of OmniTxBuilder
  • Constructor Details

    • DefaultFixedFeeCalculator

      public DefaultFixedFeeCalculator()
  • Method Details

    • calculateFee

      public org.bitcoinj.base.Coin calculateFee(org.bitcoinj.core.Transaction tx)
      Description copied from interface: FeeCalculator
      Calculate the fee for a transaction
      Specified by:
      calculateFee in interface FeeCalculator
      Parameters:
      tx - An almost-final transaction
      Returns:
      the calculated fee amount