Class SimpleVariableFeeCalculator

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

public class SimpleVariableFeeCalculator extends Object implements FeeCalculator
Simple fee calculator that always uses a linear multiple of transaction size
  • Constructor Details

    • SimpleVariableFeeCalculator

      public SimpleVariableFeeCalculator()
  • 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