public class AccountCreateOperation extends AbstractAccountCreateOperation
creator, fee, newAccountNamejsonMetadata, owner| Constructor and Description |
|---|
AccountCreateOperation(AccountName creator,
Asset fee,
AccountName newAccountName,
Authority owner,
String jsonMetadata)
Create a new create account operation.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
toByteArray()
Covert the operation into a byte array.
|
String |
toString() |
getCreator, getFee, getNewAccountName, getOwner, getRequiredAuthorities, setCreator, setFee, setNewAccountName, setOwner, validategetJsonMetadata, setJsonMetadataisVirtual, mergeRequiredAuthorities, mergeRequiredAuthoritiespublic AccountCreateOperation(AccountName creator, Asset fee, AccountName newAccountName, Authority owner, String jsonMetadata)
creator - Set the account that will pay the fee to create
the newAccountName (see
AbstractAccountCreateOperation.setCreator(AccountName)).fee - Set the fee the creator will pay (see
AbstractAccountCreateOperation.setFee(Asset)).newAccountName - Set the new account name (see
AbstractAccountCreateOperation.setNewAccountName(AccountName)).owner - The new owner authority or null if the owner authority should
not be updated (see AbstractAccountCreateOperation.setOwner(Authority)).jsonMetadata - Set the additional information for the account
(see AbstractAccountOperation.setJsonMetadata(String)).InvalidParameterException - If one of the arguments does not fulfill the requirements.public byte[] toByteArray()
throws BeowulfInvalidTransactionException
ByteTransformableBeowulfInvalidTransactionException - If there was a problem while transforming the transaction
into a byte array.Copyright © 2019. All rights reserved.