public class AccountTool extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CREATE_MAX_SIZE |
static int |
CREATE_MULTI_SIGACCOUNT_MIN_SIZE |
| 构造器和说明 |
|---|
AccountTool() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Account |
createAccount(int chainId) |
static Account |
createAccount(int chainId,
String prikey) |
static Account |
createAccount(int chainId,
String prikey,
String prefix) |
static Account |
createAccount1(int chainId) |
static Account |
createAccount1(int chainId,
String prikey) |
static Account |
createAccount1(int chainId,
String prikey,
String prefix) |
static Address |
createContractAddress(int chainId)
创建智能合约地址
Create smart contract address
|
static MultiSigAccount |
createMultiSigAccount(int chainId,
List<String> pubKeys,
int minSigns) |
static byte[] |
createMultiSigAccountOriginBytes(int chainId,
int n,
List<String> pubKeys) |
static BigInteger |
genPrivKey(byte[] encryptedPriKey,
byte[] pw)
Generate the corresponding account management private key or transaction private key according to the seed private key and password
|
static String |
getPrefix(String address) |
static Address |
newAddress(int chainId,
byte[] publicKey) |
static Address |
newAddress(int chainId,
ECKey key) |
static Address |
newAddress(int chainId,
String prikey) |
public static final int CREATE_MAX_SIZE
public static final int CREATE_MULTI_SIGACCOUNT_MIN_SIZE
public static Address newAddress(int chainId, byte[] publicKey)
public static Account createAccount(int chainId, String prikey, String prefix) throws NulsException
NulsExceptionpublic static Account createAccount1(int chainId, String prikey, String prefix) throws NulsException
NulsExceptionpublic static Account createAccount(int chainId, String prikey) throws NulsException
NulsExceptionpublic static Account createAccount1(int chainId, String prikey) throws NulsException
NulsExceptionpublic static Account createAccount(int chainId) throws NulsException
NulsExceptionpublic static Account createAccount1(int chainId) throws NulsException
NulsExceptionpublic static Address createContractAddress(int chainId)
chainId - public static BigInteger genPrivKey(byte[] encryptedPriKey, byte[] pw)
public static byte[] createMultiSigAccountOriginBytes(int chainId,
int n,
List<String> pubKeys)
throws NulsException
NulsExceptionpublic static MultiSigAccount createMultiSigAccount(int chainId, List<String> pubKeys, int minSigns) throws NulsException
NulsExceptionCopyright © 2021. All rights reserved.