public class TransactionFeeCalculator extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static BigInteger |
CROSSTX_PRICE_PRE_1024_BYTES |
static int |
KB |
static BigInteger |
NORMAL_PRICE_PRE_1024_BYTES |
| 构造器和说明 |
|---|
TransactionFeeCalculator() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BigInteger |
getConsensusTxFee(int size,
long unit)
根据交易大小计算需要交纳的手续费
According to the transaction size calculate the handling fee.
|
static BigInteger |
getCrossTxFee(int size)
根据交易大小计算需要交纳的手续费
According to the transaction size calculate the handling fee.
|
static BigInteger |
getFee(int size,
BigInteger price)
根据交易大小计算需要交纳的手续费
According to the transaction size calculate the handling fee.
|
static BigInteger |
getNormalTxFee(int size)
根据交易大小计算需要交纳的手续费
According to the transaction size calculate the handling fee.
|
static BigInteger |
getNormalUnsignedTxFee(int size)
根据未签名的交易大小计算需要交纳的手续费
|
public static final BigInteger NORMAL_PRICE_PRE_1024_BYTES
public static final BigInteger CROSSTX_PRICE_PRE_1024_BYTES
public static final int KB
public static final BigInteger getNormalTxFee(int size)
size - 交易大小/size of the transactionpublic static final BigInteger getConsensusTxFee(int size, long unit)
size - 交易大小/size of the transactionpublic static final BigInteger getNormalUnsignedTxFee(int size)
size - 未签名的交易大小/ size of the unsigned transactionpublic static final BigInteger getCrossTxFee(int size)
size - 交易大小/size of the transactionpublic static final BigInteger getFee(int size, BigInteger price)
size - 交易大小/size of the transactionCopyright © 2021. All rights reserved.