Class TestnetFeeCalculator

java.lang.Object
org.consensusj.bitcoinj.signing.TestnetFeeCalculator
All Implemented Interfaces:
FeeCalculator

public class TestnetFeeCalculator extends Object implements FeeCalculator
Stupid simple fee calculator for testnet
  • Constructor Details

  • Method Details

    • calculateFee

      public org.bitcoinj.base.Coin calculateFee(SigningRequest proposedTx)
      Description copied from interface: FeeCalculator
      Calculate the fee for an almost-complete transaction. The proposed transaction should contain all inputs and outputs. Typically, this means having a change output with a value of Coin.ZERO. After calculating the correct fee the change output should be updated with the correct amount.
      Specified by:
      calculateFee in interface FeeCalculator
      Parameters:
      proposedTx - A nearly-complete proposed transaction.
      Returns:
      A recommended fee for this transaction.