Class Account
- java.lang.Object
-
- com.syntifi.casper.sdk.model.account.Account
-
public class Account extends java.lang.Object
Structure representing a user's account, stored in global state.- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Account.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.AccountBuilder
builder()
java.util.List<AssociatedKey>
getAssociatedKeys()
a list ofAssociatedKey
ActionThresholds
getDeployment()
ActionThresholds
that have to be met when executing an action of a certain type.java.lang.String
getHash()
account_hash(String) Hex-encoded account hash.java.lang.String
getMainPurse()
main_purse(String) Hex-encoded, formatted URef.java.util.List<NamedKey>
getNamedKeys()
named_keys (@link NamedKey)void
setAssociatedKeys(java.util.List<AssociatedKey> associatedKeys)
a list ofAssociatedKey
void
setDeployment(ActionThresholds deployment)
ActionThresholds
that have to be met when executing an action of a certain type.void
setHash(java.lang.String hash)
account_hash(String) Hex-encoded account hash.void
setMainPurse(java.lang.String mainPurse)
main_purse(String) Hex-encoded, formatted URef.void
setNamedKeys(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()
ActionThresholds
that 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)
ActionThresholds
that 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)
-
-