public class Account
extends java.lang.Object
Constructor and Description |
---|
Account(java.lang.String address,
IAccountKey accountKey)
Creates an Account instance
|
Modifier and Type | Method and Description |
---|---|
static Account |
create(java.lang.String address,
java.util.List<java.lang.String[]> publicKeyList)
Create an Account instance that contains AccountKeyRoleBased instance
This method set 1 to WeightedMultiSigOptions values(threshold, weights)
|
static Account |
create(java.lang.String address,
java.util.List<java.lang.String[]> publicKeyList,
java.util.List<WeightedMultiSigOptions> optionsList)
Create an Account instance that contains AccountKeyRoleBased instance
|
static Account |
create(java.lang.String address,
java.lang.String publicKey)
Create an Account instance that contains the AccountKeyPublic instance
|
static Account |
create(java.lang.String address,
java.lang.String[] publicKeys)
Create an Account instance that contains the AccountKeyWeightedMultiSig instance
This method set 1 to WeightedMultiSigOptions values(threshold, weights)
|
static Account |
create(java.lang.String address,
java.lang.String[] publicKeys,
WeightedMultiSigOptions options)
Create an Account instance that contains AccountKeyWeightedMultiSig instance
|
static Account |
createFromRLPEncoding(java.lang.String address,
java.lang.String rlpEncodedKey)
Create an Account instance from RLP-encoded account key
|
static Account |
createWithAccountKeyFail(java.lang.String address)
Create an Account instance which has AccountKeyFail as an accountKey
|
static Account |
createWithAccountKeyLegacy(java.lang.String address)
Create an Account instance which has AccountKeyLegacy as an accountKey
|
static Account |
createWithAccountKeyPublic(java.lang.String address,
java.lang.String publicKey)
Creates an Account instance which has AccountKeyPublic as an accountKey
|
static Account |
createWithAccountKeyRoleBased(java.lang.String address,
java.util.List<java.lang.String[]> roleBasedPublicKey)
Create an Account instance which has AccountKeyRoleBased as an accountKey
This method set 1 to WeightedMultiSigOptions values(threshold, weights)
|
static Account |
createWithAccountKeyRoleBased(java.lang.String address,
java.util.List<java.lang.String[]> roleBasedPublicKey,
java.util.List<WeightedMultiSigOptions> optionsList)
Create an Account instance which has AccountKeyRoleBased as an accountKey
|
static Account |
createWithAccountKeyWeightedMultiSig(java.lang.String address,
java.lang.String[] publicKeys)
Create an Account instance which has AccountKeyWeightedMultiSig as an accountKey
This method set 1 to WeightedMultiSigOptions values(threshold, weights)
|
static Account |
createWithAccountKeyWeightedMultiSig(java.lang.String address,
java.lang.String[] publicKeys,
WeightedMultiSigOptions options)
Create an Account instance which has AccountKeyWeightedMultiSig as an accountKey
|
IAccountKey |
getAccountKey()
Getter function for accountKey
|
java.lang.String |
getAddress()
Getter function for address
|
java.lang.String |
getRLPEncodingAccountKey()
Returns RLP-encoded accountKey string
|
public Account(java.lang.String address, IAccountKey accountKey)
address
- The address of AccountaccountKey
- The accountKey of Accountpublic static Account create(java.lang.String address, java.lang.String publicKey)
address
- The address of AccountpublicKey
- public keypublic static Account create(java.lang.String address, java.lang.String[] publicKeys)
address
- address of AccountpublicKeys
- public key arraypublic static Account create(java.lang.String address, java.lang.String[] publicKeys, WeightedMultiSigOptions options)
address
- address of AccountpublicKeys
- public key arrayoptions
- WeightedMultiSigOptionspublic static Account create(java.lang.String address, java.util.List<java.lang.String[]> publicKeyList)
address
- address of AccountpublicKeyList
- List of public key arraypublic static Account create(java.lang.String address, java.util.List<java.lang.String[]> publicKeyList, java.util.List<WeightedMultiSigOptions> optionsList)
address
- address of AccountpublicKeyList
- List of public key arrayoptionsList
- List of WeightedMultiSigOptionspublic static Account createFromRLPEncoding(java.lang.String address, java.lang.String rlpEncodedKey)
address
- address of AccountrlpEncodedKey
- RLP-encoded account key stringpublic static Account createWithAccountKeyLegacy(java.lang.String address)
address
- address of Accountpublic static Account createWithAccountKeyFail(java.lang.String address)
address
- address of Accountpublic static Account createWithAccountKeyPublic(java.lang.String address, java.lang.String publicKey)
address
- address of AccountpublicKey
- public keypublic static Account createWithAccountKeyWeightedMultiSig(java.lang.String address, java.lang.String[] publicKeys)
address
- address of AccountpublicKeys
- array of public keypublic static Account createWithAccountKeyWeightedMultiSig(java.lang.String address, java.lang.String[] publicKeys, WeightedMultiSigOptions options)
address
- address of AccountpublicKeys
- List of public key arrayoptions
- List of WeightedMultiSigOptionspublic static Account createWithAccountKeyRoleBased(java.lang.String address, java.util.List<java.lang.String[]> roleBasedPublicKey)
address
- address of AccountroleBasedPublicKey
- List of public key arraypublic static Account createWithAccountKeyRoleBased(java.lang.String address, java.util.List<java.lang.String[]> roleBasedPublicKey, java.util.List<WeightedMultiSigOptions> optionsList)
address
- address of AccountroleBasedPublicKey
- List of public key arrayoptionsList
- List of WeightedMultiSigOptionspublic java.lang.String getRLPEncodingAccountKey()
public java.lang.String getAddress()
public IAccountKey getAccountKey()