public abstract class AbstractAccountCreateOperation extends AbstractAccountOperation
| Modifier and Type | Field and Description |
|---|---|
protected AccountName |
creator |
protected Asset |
fee |
protected AccountName |
newAccountName |
jsonMetadata, owner| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAccountCreateOperation(boolean virtual)
Create a new Operation object by providing the operation type.
|
| Modifier and Type | Method and Description |
|---|---|
AccountName |
getCreator()
Get the account who created a new account.
|
Asset |
getFee()
Get the fee the
creator has paid to create this new
account. |
AccountName |
getNewAccountName()
Get the account name of the created account.
|
Authority |
getOwner()
Get the owner
Authority of the newAccountName. |
Map<SignatureObject,PrivateKeyType> |
getRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase)
Add the authorities which are required to sign this operation to an
existing map.
|
void |
setCreator(AccountName creator)
Set the user who created a new account.
|
void |
setFee(Asset fee)
Set the fee the
creator will pay to create a new
account. |
void |
setNewAccountName(AccountName newAccountName)
Set the account name for the new account.
|
void |
setOwner(Authority owner)
Set the owner
Authority of the newAccountName. |
void |
validate(ValidationType validationType)
Use this method to verify that this object is valid.
|
getJsonMetadata, setJsonMetadataisVirtual, mergeRequiredAuthorities, mergeRequiredAuthorities, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoByteArrayprotected Asset fee
protected AccountName creator
protected AccountName newAccountName
protected AbstractAccountCreateOperation(boolean virtual)
virtual - Define if the operation instance is a virtual
(true) or a market operation
(false).public Asset getFee()
creator has paid to create this new
account.public void setFee(Asset fee)
creator will pay to create a new
account.fee - The fee.InvalidParameterException - If the fee is null, of symbol type BWF or less
than 0.public AccountName getCreator()
public void setCreator(AccountName creator)
creator - The the user who creates a new account.InvalidParameterException - If the creator is null.public AccountName getNewAccountName()
public void setNewAccountName(AccountName newAccountName)
newAccountName - The account name of the user which should be created.InvalidParameterException - If the newAccountName is null.public Authority getOwner()
Authority of the newAccountName.getOwner in class AbstractAccountOperationpublic void setOwner(Authority owner)
Authority of the newAccountName.setOwner in class AbstractAccountOperationowner - The owner authority.InvalidParameterException - If the owner is null.public Map<SignatureObject,PrivateKeyType> getRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase)
OperationgetRequiredAuthorities in class OperationrequiredAuthoritiesBase - A map to which the required authorities of this operation
should be added to.public void validate(ValidationType validationType)
Validatablevalidate in interface Validatablevalidate in class AbstractAccountOperationvalidationType - An indicator telling the method what should be validated.Copyright © 2019. All rights reserved.