程序包 io.nuls.v2.util
类 TxUtils
- java.lang.Object
-
- io.nuls.v2.util.TxUtils
-
public class TxUtils extends Object
-
-
构造器概要
构造器 构造器 说明 TxUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static BigIntegercalcCrossTxFee(int addressCount, int fromLength, int toLength, String remark)static Map<String,BigInteger>calcCrossTxFee(int addressCount, int fromLength, int toLength, String remark, boolean isMainNet)static BigIntegercalcStopConsensusTxFee(int fromLength, int toLength, BigInteger price)static BigIntegercalcTransferTxFee(int addressCount, int fromLength, int toLength, String remark, BigInteger price)static voidcalcTxFee(List<CoinFrom> coinFroms, List<CoinTo> coinTos, int txSize)static byte[]getNonce(byte[] txHash)根据交易HASH获取NONCE(交易HASH后8位) Obtain NONCE according to HASH (the last 8 digits of HASH)static booleanisMainAsset(int chainId, int assetId)static booleanisNulsAsset(int chainId, int assetId)
-
-
-
方法详细资料
-
isMainAsset
public static boolean isMainAsset(int chainId, int assetId)
-
isNulsAsset
public static boolean isNulsAsset(int chainId, int assetId)
-
calcTxFee
public static void calcTxFee(List<CoinFrom> coinFroms, List<CoinTo> coinTos, int txSize) throws NulsException
- 抛出:
NulsException
-
calcTransferTxFee
public static BigInteger calcTransferTxFee(int addressCount, int fromLength, int toLength, String remark, BigInteger price)
-
calcCrossTxFee
public static Map<String,BigInteger> calcCrossTxFee(int addressCount, int fromLength, int toLength, String remark, boolean isMainNet)
-
calcCrossTxFee
public static BigInteger calcCrossTxFee(int addressCount, int fromLength, int toLength, String remark)
-
calcStopConsensusTxFee
public static BigInteger calcStopConsensusTxFee(int fromLength, int toLength, BigInteger price)
-
getNonce
public static byte[] getNonce(byte[] txHash)
根据交易HASH获取NONCE(交易HASH后8位) Obtain NONCE according to HASH (the last 8 digits of HASH)
-
-