public class TxUtils extends Object
| 构造器和说明 |
|---|
TxUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,BigInteger> |
calcCrossTxFee(int addressCount,
int fromLength,
int toLength,
String remark) |
static BigInteger |
calcStopConsensusTxFee(int fromLength,
int toLength,
BigInteger price) |
static BigInteger |
calcTransferTxFee(int addressCount,
int fromLength,
int toLength,
String remark,
BigInteger price) |
static void |
calcTxFee(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 boolean |
isMainAsset(int chainId,
int assetId) |
static boolean |
isNulsAsset(int chainId,
int assetId) |
static byte[] |
nulsData2HexBytes(BaseNulsData nulsData) |
public static boolean isMainAsset(int chainId,
int assetId)
public static boolean isNulsAsset(int chainId,
int assetId)
public static void calcTxFee(List<CoinFrom> coinFroms, List<CoinTo> coinTos, int txSize) throws NulsException
NulsExceptionpublic static BigInteger calcTransferTxFee(int addressCount, int fromLength, int toLength, String remark, BigInteger price)
public static Map<String,BigInteger> calcCrossTxFee(int addressCount, int fromLength, int toLength, String remark)
public static BigInteger calcStopConsensusTxFee(int fromLength, int toLength, BigInteger price)
public static byte[] getNonce(byte[] txHash)
public static byte[] nulsData2HexBytes(BaseNulsData nulsData)
Copyright © 2021. All rights reserved.