类 TransactionFeeCalculator


  • public class TransactionFeeCalculator
    extends Object
    作者:
    tag 2018/11/27
    • 字段详细资料

      • NORMAL_PRICE_PRE_1024_BYTES

        public static final BigInteger NORMAL_PRICE_PRE_1024_BYTES
      • CROSSTX_PRICE_PRE_1024_BYTES

        public static final BigInteger CROSSTX_PRICE_PRE_1024_BYTES
    • 构造器详细资料

      • TransactionFeeCalculator

        public TransactionFeeCalculator()
    • 方法详细资料

      • getNormalTxFee

        public static final BigInteger getNormalTxFee​(int size)
        根据交易大小计算需要交纳的手续费 According to the transaction size calculate the handling fee.
        参数:
        size - 交易大小/size of the transaction
      • getConsensusTxFee

        public static final BigInteger getConsensusTxFee​(int size,
                                                         long unit)
        根据交易大小计算需要交纳的手续费 According to the transaction size calculate the handling fee.
        参数:
        size - 交易大小/size of the transaction
      • getNormalUnsignedTxFee

        public static final BigInteger getNormalUnsignedTxFee​(int size)
        根据未签名的交易大小计算需要交纳的手续费
        参数:
        size - 未签名的交易大小/ size of the unsigned transaction
        返回:
        交易手续费
      • getCrossTxFee

        public static final BigInteger getCrossTxFee​(int size)
        根据交易大小计算需要交纳的手续费 According to the transaction size calculate the handling fee.
        参数:
        size - 交易大小/size of the transaction
      • getFee

        public static final BigInteger getFee​(int size,
                                              BigInteger price)
        根据交易大小计算需要交纳的手续费 According to the transaction size calculate the handling fee.
        参数:
        size - 交易大小/size of the transaction