public class FeeRateCalculator
extends java.lang.Object
BundlerRate
s according to the provided minBalance
, minFeeLimit
and whitelist
. Calculates the best NQT per FXT rate to be used when creating a child chain transaction. priority
of the transactionModifier and Type | Class and Description |
---|---|
static class |
FeeRateCalculator.Builder |
static class |
FeeRateCalculator.TransactionPriority |
Modifier and Type | Method and Description |
---|---|
static FeeRateCalculator.Builder |
create() |
long |
getBestRate(Chain childChain) |
java.util.List<BundlerRate> |
getBestRates() |
long |
getMinBalance() |
long |
getMinFeeLimit() |
FeeRateCalculator.TransactionPriority |
getPriority() |
java.util.Set<java.lang.Long> |
getWhitelist() |
public static FeeRateCalculator.Builder create()
public long getMinBalance()
public long getMinFeeLimit()
public java.util.Set<java.lang.Long> getWhitelist()
public FeeRateCalculator.TransactionPriority getPriority()
public java.util.List<BundlerRate> getBestRates()
public long getBestRate(Chain childChain)
childChain
- The child chain we are interested in