public class AccountUpdateOperation extends AbstractAccountOperation
jsonMetadata, owner| Constructor and Description |
|---|
AccountUpdateOperation(AccountName account,
Authority owner,
String jsonMetadata,
Asset fee)
Create a new create account update operation.Use this operation to
update the keys of an existing account.
|
| Modifier and Type | Method and Description |
|---|---|
AccountName |
getAccount()
Get the account name of the account that has been changed.
|
Asset |
getFee() |
Authority |
getOwner()
|
Map<SignatureObject,PrivateKeyType> |
getRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase)
Add the authorities which are required to sign this operation to an
existing map.
|
void |
setAccount(AccountName account)
Set the account name of the account that has been changed.
|
void |
setFee(Asset fee) |
void |
setOwner(Authority owner)
|
byte[] |
toByteArray()
Covert the operation into a byte array.
|
String |
toString() |
getJsonMetadata, setJsonMetadata, validateisVirtual, mergeRequiredAuthorities, mergeRequiredAuthoritiespublic AccountUpdateOperation(AccountName account, Authority owner, String jsonMetadata, Asset fee)
account - The account to update (see setAccount(AccountName)).owner - The new owner authority or null if the owner authority should
not be updated (see setOwner(Authority)).jsonMetadata - Set the additional information for the account
(see AbstractAccountOperation.setJsonMetadata(String)).fee - The fee of transaction.InvalidParameterException - If one of the arguments does not fulfill the requirements.public Authority getOwner()
getOwner in class AbstractAccountOperationpublic void setOwner(Authority owner)
setOwner in class AbstractAccountOperationowner - The owner authority.public AccountName getAccount()
public void setAccount(AccountName account)
account - The account name of the account to change.InvalidParameterException - If the account is null.public Asset getFee()
public void setFee(Asset fee)
public byte[] toByteArray()
throws BeowulfInvalidTransactionException
ByteTransformableBeowulfInvalidTransactionException - If there was a problem while transforming the transaction
into a byte array.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.Copyright © 2019. All rights reserved.