Class Account
- java.lang.Object
-
- com.syntifi.casper.sdk.model.account.Account
-
public class Account extends java.lang.ObjectStructure representing a user's account, stored in global state.- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccount.AccountBuilder
-
Constructor Summary
Constructors Constructor Description Account()Account(java.lang.String hash, ActionThresholds deployment, java.util.List<AssociatedKey> associatedKeys, java.lang.String mainPurse, java.util.List<NamedKey> namedKeys)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Account.AccountBuilderbuilder()java.util.List<AssociatedKey>getAssociatedKeys()a list ofAssociatedKeyActionThresholdsgetDeployment()ActionThresholdsthat have to be met when executing an action of a certain type.java.lang.StringgetHash()account_hash(String) Hex-encoded account hash.java.lang.StringgetMainPurse()main_purse(String) Hex-encoded, formatted URef.java.util.List<NamedKey>getNamedKeys()named_keys (@link NamedKey)voidsetAssociatedKeys(java.util.List<AssociatedKey> associatedKeys)a list ofAssociatedKeyvoidsetDeployment(ActionThresholds deployment)ActionThresholdsthat have to be met when executing an action of a certain type.voidsetHash(java.lang.String hash)account_hash(String) Hex-encoded account hash.voidsetMainPurse(java.lang.String mainPurse)main_purse(String) Hex-encoded, formatted URef.voidsetNamedKeys(java.util.List<NamedKey> namedKeys)named_keys (@link NamedKey)
-
-
-
Constructor Detail
-
Account
public Account()
-
Account
public Account(java.lang.String hash, ActionThresholds deployment, java.util.List<AssociatedKey> associatedKeys, java.lang.String mainPurse, java.util.List<NamedKey> namedKeys)
-
-
Method Detail
-
builder
public static Account.AccountBuilder builder()
-
getHash
public java.lang.String getHash()
account_hash(String) Hex-encoded account hash.
-
getDeployment
public ActionThresholds getDeployment()
ActionThresholdsthat have to be met when executing an action of a certain type.
-
getAssociatedKeys
public java.util.List<AssociatedKey> getAssociatedKeys()
a list ofAssociatedKey
-
getMainPurse
public java.lang.String getMainPurse()
main_purse(String) Hex-encoded, formatted URef.
-
getNamedKeys
public java.util.List<NamedKey> getNamedKeys()
named_keys (@link NamedKey)
-
setHash
public void setHash(java.lang.String hash)
account_hash(String) Hex-encoded account hash.
-
setDeployment
public void setDeployment(ActionThresholds deployment)
ActionThresholdsthat have to be met when executing an action of a certain type.
-
setAssociatedKeys
public void setAssociatedKeys(java.util.List<AssociatedKey> associatedKeys)
a list ofAssociatedKey
-
setMainPurse
public void setMainPurse(java.lang.String mainPurse)
main_purse(String) Hex-encoded, formatted URef.
-
setNamedKeys
public void setNamedKeys(java.util.List<NamedKey> namedKeys)
named_keys (@link NamedKey)
-
-