Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class CryptoCreateTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<CryptoCreateTransactionBody,CryptoCreateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<CryptoCreateTransactionBody,CryptoCreateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,CryptoCreateTransactionBodyOrBuilder,Cloneable
- Enclosing class:
CryptoCreateTransactionBody
public static final class CryptoCreateTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<CryptoCreateTransactionBody,CryptoCreateTransactionBody.Builder>
implements CryptoCreateTransactionBodyOrBuilder
Create a new account. If the auto_renew_account field is set, the key of the referenced account MUST sign this transaction.<br/> Current limitations REQUIRE that `shardID` and `realmID` both MUST be `0`. This is expected to change in the future. ### Block Stream Effects The newly created account SHALL be included in State Changes.Protobuf type
proto.CryptoCreateTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllHookCreationDetails(Iterable<? extends HookCreationDetails> values) * Details of hooks to add immediately after creating this account.addHookCreationDetails(int index, HookCreationDetails value) * Details of hooks to add immediately after creating this account.addHookCreationDetails(int index, HookCreationDetails.Builder builderForValue) * Details of hooks to add immediately after creating this account.* Details of hooks to add immediately after creating this account.addHookCreationDetails(HookCreationDetails.Builder builderForValue) * Details of hooks to add immediately after creating this account.* Bytes to be used as the account's alias.* The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger.* A boolean indicating that this account has chosen to decline rewards for staking its balances.* The initial delegated contract address to set for the new account.* Details of hooks to add immediately after creating this account.* An amount, in tinybar, to deposit to the newly created account.clearKey()* The identifying key for this account.* A maximum number of tokens that can be auto-associated with this account.<br/> By default this value is 0 for all accounts except for automatically created accounts (e.g.* A short description of this Account.Deprecated.Deprecated.* The realm in which this account is created.Deprecated.proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated.* A flag indicating the account holder must authorize all incoming token transfers.Deprecated.proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated.* The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.* ID of the account to which this account is staking its balances.* ID of the node this account is staked to.com.google.protobuf.ByteStringgetAlias()* Bytes to be used as the account's alias.* The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger.boolean* A boolean indicating that this account has chosen to decline rewards for staking its balances.com.google.protobuf.ByteString* The initial delegated contract address to set for the new account.getHookCreationDetails(int index) * Details of hooks to add immediately after creating this account.int* Details of hooks to add immediately after creating this account.* Details of hooks to add immediately after creating this account.long* An amount, in tinybar, to deposit to the newly created account.getKey()* The identifying key for this account.int* A maximum number of tokens that can be auto-associated with this account.<br/> By default this value is 0 for all accounts except for automatically created accounts (e.g.getMemo()* A short description of this Account.com.google.protobuf.ByteString* A short description of this Account.Deprecated.Deprecated.* The realm in which this account is created.longDeprecated.proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated.boolean* A flag indicating the account holder must authorize all incoming token transfers.longDeprecated.proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated.* The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.* ID of the account to which this account is staking its balances.long* ID of the node this account is staked to.boolean* The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger.booleanhasKey()* The identifying key for this account.booleanDeprecated.booleanDeprecated.boolean* The realm in which this account is created.boolean* The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.boolean* ID of the account to which this account is staking its balances.boolean* ID of the node this account is staked to.mergeAutoRenewPeriod(Duration value) * The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger.* The identifying key for this account.mergeNewRealmAdminKey(Key value) Deprecated.mergeProxyAccountID(AccountID value) Deprecated.mergeRealmID(RealmID value) * The realm in which this account is created.mergeShardID(ShardID value) * The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.mergeStakedAccountId(AccountID value) * ID of the account to which this account is staking its balances.removeHookCreationDetails(int index) * Details of hooks to add immediately after creating this account.setAlias(com.google.protobuf.ByteString value) * Bytes to be used as the account's alias.setAutoRenewPeriod(Duration value) * The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger.setAutoRenewPeriod(Duration.Builder builderForValue) * The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger.setDeclineReward(boolean value) * A boolean indicating that this account has chosen to decline rewards for staking its balances.setDelegationAddress(com.google.protobuf.ByteString value) * The initial delegated contract address to set for the new account.setHookCreationDetails(int index, HookCreationDetails value) * Details of hooks to add immediately after creating this account.setHookCreationDetails(int index, HookCreationDetails.Builder builderForValue) * Details of hooks to add immediately after creating this account.setInitialBalance(long value) * An amount, in tinybar, to deposit to the newly created account.* The identifying key for this account.setKey(Key.Builder builderForValue) * The identifying key for this account.setMaxAutomaticTokenAssociations(int value) * A maximum number of tokens that can be auto-associated with this account.<br/> By default this value is 0 for all accounts except for automatically created accounts (e.g.* A short description of this Account.setMemoBytes(com.google.protobuf.ByteString value) * A short description of this Account.setNewRealmAdminKey(Key value) Deprecated.setNewRealmAdminKey(Key.Builder builderForValue) Deprecated.setProxyAccountID(AccountID value) Deprecated.setProxyAccountID(AccountID.Builder builderForValue) Deprecated.setRealmID(RealmID value) * The realm in which this account is created.setRealmID(RealmID.Builder builderForValue) * The realm in which this account is created.setReceiveRecordThreshold(long value) Deprecated.proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated.setReceiverSigRequired(boolean value) * A flag indicating the account holder must authorize all incoming token transfers.setSendRecordThreshold(long value) Deprecated.proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated.setShardID(ShardID value) * The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.setShardID(ShardID.Builder builderForValue) * The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.setStakedAccountId(AccountID value) * ID of the account to which this account is staking its balances.setStakedAccountId(AccountID.Builder builderForValue) * ID of the account to which this account is staking its balances.setStakedNodeId(long value) * ID of the node this account is staked to.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getStakedIdCase
- Specified by:
getStakedIdCasein interfaceCryptoCreateTransactionBodyOrBuilder
-
clearStakedId
-
hasKey
public boolean hasKey()* The identifying key for this account. This key represents the account owner, and is required for most actions involving this account that do not modify the account itself. This key may also identify the account for smart contracts. <p> This field is REQUIRED. This `Key` MUST NOT be an empty `KeyList` and MUST contain at least one "primitive" (i.e. cryptographic) key value.
.proto.Key key = 1;- Specified by:
hasKeyin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- Whether the key field is set.
-
getKey
* The identifying key for this account. This key represents the account owner, and is required for most actions involving this account that do not modify the account itself. This key may also identify the account for smart contracts. <p> This field is REQUIRED. This `Key` MUST NOT be an empty `KeyList` and MUST contain at least one "primitive" (i.e. cryptographic) key value.
.proto.Key key = 1;- Specified by:
getKeyin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The key.
-
setKey
* The identifying key for this account. This key represents the account owner, and is required for most actions involving this account that do not modify the account itself. This key may also identify the account for smart contracts. <p> This field is REQUIRED. This `Key` MUST NOT be an empty `KeyList` and MUST contain at least one "primitive" (i.e. cryptographic) key value.
.proto.Key key = 1; -
setKey
* The identifying key for this account. This key represents the account owner, and is required for most actions involving this account that do not modify the account itself. This key may also identify the account for smart contracts. <p> This field is REQUIRED. This `Key` MUST NOT be an empty `KeyList` and MUST contain at least one "primitive" (i.e. cryptographic) key value.
.proto.Key key = 1; -
mergeKey
* The identifying key for this account. This key represents the account owner, and is required for most actions involving this account that do not modify the account itself. This key may also identify the account for smart contracts. <p> This field is REQUIRED. This `Key` MUST NOT be an empty `KeyList` and MUST contain at least one "primitive" (i.e. cryptographic) key value.
.proto.Key key = 1; -
clearKey
* The identifying key for this account. This key represents the account owner, and is required for most actions involving this account that do not modify the account itself. This key may also identify the account for smart contracts. <p> This field is REQUIRED. This `Key` MUST NOT be an empty `KeyList` and MUST contain at least one "primitive" (i.e. cryptographic) key value.
.proto.Key key = 1; -
getInitialBalance
public long getInitialBalance()* An amount, in tinybar, to deposit to the newly created account. <p> The deposited amount SHALL be debited to the "payer" account for this transaction.
uint64 initialBalance = 2;- Specified by:
getInitialBalancein interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The initialBalance.
-
setInitialBalance
* An amount, in tinybar, to deposit to the newly created account. <p> The deposited amount SHALL be debited to the "payer" account for this transaction.
uint64 initialBalance = 2;- Parameters:
value- The initialBalance to set.- Returns:
- This builder for chaining.
-
clearInitialBalance
* An amount, in tinybar, to deposit to the newly created account. <p> The deposited amount SHALL be debited to the "payer" account for this transaction.
uint64 initialBalance = 2;- Returns:
- This builder for chaining.
-
hasProxyAccountID
Deprecated.* Use `staked_id` instead.<br/> An account identifier for a staking proxy.
.proto.AccountID proxyAccountID = 3 [deprecated = true];- Specified by:
hasProxyAccountIDin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- Whether the proxyAccountID field is set.
-
getProxyAccountID
Deprecated.* Use `staked_id` instead.<br/> An account identifier for a staking proxy.
.proto.AccountID proxyAccountID = 3 [deprecated = true];- Specified by:
getProxyAccountIDin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The proxyAccountID.
-
setProxyAccountID
Deprecated.* Use `staked_id` instead.<br/> An account identifier for a staking proxy.
.proto.AccountID proxyAccountID = 3 [deprecated = true]; -
setProxyAccountID
@Deprecated public CryptoCreateTransactionBody.Builder setProxyAccountID(AccountID.Builder builderForValue) Deprecated.* Use `staked_id` instead.<br/> An account identifier for a staking proxy.
.proto.AccountID proxyAccountID = 3 [deprecated = true]; -
mergeProxyAccountID
Deprecated.* Use `staked_id` instead.<br/> An account identifier for a staking proxy.
.proto.AccountID proxyAccountID = 3 [deprecated = true]; -
clearProxyAccountID
Deprecated.* Use `staked_id` instead.<br/> An account identifier for a staking proxy.
.proto.AccountID proxyAccountID = 3 [deprecated = true]; -
getSendRecordThreshold
Deprecated.proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated. See crypto_create.proto;l=71* Removed prior to the first available history, and may be related to an early design dead-end.<br/> An amount below which record stream records would not be created for a transaction that reduces this account balance.
uint64 sendRecordThreshold = 6 [deprecated = true];- Specified by:
getSendRecordThresholdin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The sendRecordThreshold.
-
setSendRecordThreshold
Deprecated.proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated. See crypto_create.proto;l=71* Removed prior to the first available history, and may be related to an early design dead-end.<br/> An amount below which record stream records would not be created for a transaction that reduces this account balance.
uint64 sendRecordThreshold = 6 [deprecated = true];- Parameters:
value- The sendRecordThreshold to set.- Returns:
- This builder for chaining.
-
clearSendRecordThreshold
Deprecated.proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated. See crypto_create.proto;l=71* Removed prior to the first available history, and may be related to an early design dead-end.<br/> An amount below which record stream records would not be created for a transaction that reduces this account balance.
uint64 sendRecordThreshold = 6 [deprecated = true];- Returns:
- This builder for chaining.
-
getReceiveRecordThreshold
Deprecated.proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated. See crypto_create.proto;l=79* Removed prior to the first available history, and may be related to an early design dead-end.<br/> An amount below which record stream records would not be created for a transaction that increases this account balance.
uint64 receiveRecordThreshold = 7 [deprecated = true];- Specified by:
getReceiveRecordThresholdin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The receiveRecordThreshold.
-
setReceiveRecordThreshold
Deprecated.proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated. See crypto_create.proto;l=79* Removed prior to the first available history, and may be related to an early design dead-end.<br/> An amount below which record stream records would not be created for a transaction that increases this account balance.
uint64 receiveRecordThreshold = 7 [deprecated = true];- Parameters:
value- The receiveRecordThreshold to set.- Returns:
- This builder for chaining.
-
clearReceiveRecordThreshold
Deprecated.proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated. See crypto_create.proto;l=79* Removed prior to the first available history, and may be related to an early design dead-end.<br/> An amount below which record stream records would not be created for a transaction that increases this account balance.
uint64 receiveRecordThreshold = 7 [deprecated = true];- Returns:
- This builder for chaining.
-
getReceiverSigRequired
public boolean getReceiverSigRequired()* A flag indicating the account holder must authorize all incoming token transfers. <p> If this flag is set then any transaction that would result in adding hbar or other tokens to this account balance MUST be signed by the identifying key of this account (that is, the `key` field).<br/> If this flag is set, then the account key (`key` field) MUST sign this create transaction, in addition to the transaction payer.
bool receiverSigRequired = 8;- Specified by:
getReceiverSigRequiredin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The receiverSigRequired.
-
setReceiverSigRequired
* A flag indicating the account holder must authorize all incoming token transfers. <p> If this flag is set then any transaction that would result in adding hbar or other tokens to this account balance MUST be signed by the identifying key of this account (that is, the `key` field).<br/> If this flag is set, then the account key (`key` field) MUST sign this create transaction, in addition to the transaction payer.
bool receiverSigRequired = 8;- Parameters:
value- The receiverSigRequired to set.- Returns:
- This builder for chaining.
-
clearReceiverSigRequired
* A flag indicating the account holder must authorize all incoming token transfers. <p> If this flag is set then any transaction that would result in adding hbar or other tokens to this account balance MUST be signed by the identifying key of this account (that is, the `key` field).<br/> If this flag is set, then the account key (`key` field) MUST sign this create transaction, in addition to the transaction payer.
bool receiverSigRequired = 8;- Returns:
- This builder for chaining.
-
hasAutoRenewPeriod
public boolean hasAutoRenewPeriod()* The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger. This value sets the interval between such events for this account. <p> If the account balance (in HBAR) is insufficient to pay the full renewal fee, the entire HBAR balance SHALL be consumed and the expiration for the account SHALL be extended as far as the available balance can support.<br/> If the account HBAR balance is `0` when the account must be renewed, then the account SHALL be deleted, and subsequently removed from state.
.proto.Duration autoRenewPeriod = 9;- Specified by:
hasAutoRenewPeriodin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- Whether the autoRenewPeriod field is set.
-
getAutoRenewPeriod
* The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger. This value sets the interval between such events for this account. <p> If the account balance (in HBAR) is insufficient to pay the full renewal fee, the entire HBAR balance SHALL be consumed and the expiration for the account SHALL be extended as far as the available balance can support.<br/> If the account HBAR balance is `0` when the account must be renewed, then the account SHALL be deleted, and subsequently removed from state.
.proto.Duration autoRenewPeriod = 9;- Specified by:
getAutoRenewPeriodin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The autoRenewPeriod.
-
setAutoRenewPeriod
* The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger. This value sets the interval between such events for this account. <p> If the account balance (in HBAR) is insufficient to pay the full renewal fee, the entire HBAR balance SHALL be consumed and the expiration for the account SHALL be extended as far as the available balance can support.<br/> If the account HBAR balance is `0` when the account must be renewed, then the account SHALL be deleted, and subsequently removed from state.
.proto.Duration autoRenewPeriod = 9; -
setAutoRenewPeriod
* The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger. This value sets the interval between such events for this account. <p> If the account balance (in HBAR) is insufficient to pay the full renewal fee, the entire HBAR balance SHALL be consumed and the expiration for the account SHALL be extended as far as the available balance can support.<br/> If the account HBAR balance is `0` when the account must be renewed, then the account SHALL be deleted, and subsequently removed from state.
.proto.Duration autoRenewPeriod = 9; -
mergeAutoRenewPeriod
* The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger. This value sets the interval between such events for this account. <p> If the account balance (in HBAR) is insufficient to pay the full renewal fee, the entire HBAR balance SHALL be consumed and the expiration for the account SHALL be extended as far as the available balance can support.<br/> If the account HBAR balance is `0` when the account must be renewed, then the account SHALL be deleted, and subsequently removed from state.
.proto.Duration autoRenewPeriod = 9; -
clearAutoRenewPeriod
* The duration between account automatic renewals.<br/> All entities in state may be charged "rent" occasionally (typically every 90 days) to prevent unnecessary growth of the ledger. This value sets the interval between such events for this account. <p> If the account balance (in HBAR) is insufficient to pay the full renewal fee, the entire HBAR balance SHALL be consumed and the expiration for the account SHALL be extended as far as the available balance can support.<br/> If the account HBAR balance is `0` when the account must be renewed, then the account SHALL be deleted, and subsequently removed from state.
.proto.Duration autoRenewPeriod = 9; -
hasShardID
public boolean hasShardID()* The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.
.proto.ShardID shardID = 10;- Specified by:
hasShardIDin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- Whether the shardID field is set.
-
getShardID
* The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.
.proto.ShardID shardID = 10;- Specified by:
getShardIDin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The shardID.
-
setShardID
* The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.
.proto.ShardID shardID = 10; -
setShardID
* The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.
.proto.ShardID shardID = 10; -
mergeShardID
* The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.
.proto.ShardID shardID = 10; -
clearShardID
* The shard in which this account is created <p> Currently, this MUST be `0`.<br/> If the desired shard is `0`, this SHOULD NOT be set.
.proto.ShardID shardID = 10; -
hasRealmID
public boolean hasRealmID()* The realm in which this account is created. <p> The shard number for this realm MUST match the value in `shardID`.<br/> Currently, this MUST be `0` for both fields.<br/> If the desired realm is `0`, this SHOULD NOT be set.
.proto.RealmID realmID = 11;- Specified by:
hasRealmIDin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- Whether the realmID field is set.
-
getRealmID
* The realm in which this account is created. <p> The shard number for this realm MUST match the value in `shardID`.<br/> Currently, this MUST be `0` for both fields.<br/> If the desired realm is `0`, this SHOULD NOT be set.
.proto.RealmID realmID = 11;- Specified by:
getRealmIDin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The realmID.
-
setRealmID
* The realm in which this account is created. <p> The shard number for this realm MUST match the value in `shardID`.<br/> Currently, this MUST be `0` for both fields.<br/> If the desired realm is `0`, this SHOULD NOT be set.
.proto.RealmID realmID = 11; -
setRealmID
* The realm in which this account is created. <p> The shard number for this realm MUST match the value in `shardID`.<br/> Currently, this MUST be `0` for both fields.<br/> If the desired realm is `0`, this SHOULD NOT be set.
.proto.RealmID realmID = 11; -
mergeRealmID
* The realm in which this account is created. <p> The shard number for this realm MUST match the value in `shardID`.<br/> Currently, this MUST be `0` for both fields.<br/> If the desired realm is `0`, this SHOULD NOT be set.
.proto.RealmID realmID = 11; -
clearRealmID
* The realm in which this account is created. <p> The shard number for this realm MUST match the value in `shardID`.<br/> Currently, this MUST be `0` for both fields.<br/> If the desired realm is `0`, this SHOULD NOT be set.
.proto.RealmID realmID = 11; -
hasNewRealmAdminKey
Deprecated.* This field was never actually used or enabled, and is not expected to ever be used in the future.<br/>
.proto.Key newRealmAdminKey = 12 [deprecated = true];- Specified by:
hasNewRealmAdminKeyin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- Whether the newRealmAdminKey field is set.
-
getNewRealmAdminKey
Deprecated.* This field was never actually used or enabled, and is not expected to ever be used in the future.<br/>
.proto.Key newRealmAdminKey = 12 [deprecated = true];- Specified by:
getNewRealmAdminKeyin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The newRealmAdminKey.
-
setNewRealmAdminKey
Deprecated.* This field was never actually used or enabled, and is not expected to ever be used in the future.<br/>
.proto.Key newRealmAdminKey = 12 [deprecated = true]; -
setNewRealmAdminKey
@Deprecated public CryptoCreateTransactionBody.Builder setNewRealmAdminKey(Key.Builder builderForValue) Deprecated.* This field was never actually used or enabled, and is not expected to ever be used in the future.<br/>
.proto.Key newRealmAdminKey = 12 [deprecated = true]; -
mergeNewRealmAdminKey
Deprecated.* This field was never actually used or enabled, and is not expected to ever be used in the future.<br/>
.proto.Key newRealmAdminKey = 12 [deprecated = true]; -
clearNewRealmAdminKey
Deprecated.* This field was never actually used or enabled, and is not expected to ever be used in the future.<br/>
.proto.Key newRealmAdminKey = 12 [deprecated = true]; -
getMemo
* A short description of this Account. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 13;- Specified by:
getMemoin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The memo.
-
getMemoBytes
public com.google.protobuf.ByteString getMemoBytes()* A short description of this Account. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 13;- Specified by:
getMemoBytesin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The bytes for memo.
-
setMemo
* A short description of this Account. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 13;- Parameters:
value- The memo to set.- Returns:
- This builder for chaining.
-
clearMemo
* A short description of this Account. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 13;- Returns:
- This builder for chaining.
-
setMemoBytes
* A short description of this Account. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 13;- Parameters:
value- The bytes for memo to set.- Returns:
- This builder for chaining.
-
getMaxAutomaticTokenAssociations
public int getMaxAutomaticTokenAssociations()* A maximum number of tokens that can be auto-associated with this account.<br/> By default this value is 0 for all accounts except for automatically created accounts (e.g. smart contracts), which default to -1. <p> If this value is `0`, then this account MUST manually associate to a token before holding or transacting in that token.<br/> This value MAY also be `-1` to indicate no limit.<br/> This value MUST NOT be less than `-1`.
int32 max_automatic_token_associations = 14;- Specified by:
getMaxAutomaticTokenAssociationsin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The maxAutomaticTokenAssociations.
-
setMaxAutomaticTokenAssociations
* A maximum number of tokens that can be auto-associated with this account.<br/> By default this value is 0 for all accounts except for automatically created accounts (e.g. smart contracts), which default to -1. <p> If this value is `0`, then this account MUST manually associate to a token before holding or transacting in that token.<br/> This value MAY also be `-1` to indicate no limit.<br/> This value MUST NOT be less than `-1`.
int32 max_automatic_token_associations = 14;- Parameters:
value- The maxAutomaticTokenAssociations to set.- Returns:
- This builder for chaining.
-
clearMaxAutomaticTokenAssociations
* A maximum number of tokens that can be auto-associated with this account.<br/> By default this value is 0 for all accounts except for automatically created accounts (e.g. smart contracts), which default to -1. <p> If this value is `0`, then this account MUST manually associate to a token before holding or transacting in that token.<br/> This value MAY also be `-1` to indicate no limit.<br/> This value MUST NOT be less than `-1`.
int32 max_automatic_token_associations = 14;- Returns:
- This builder for chaining.
-
hasStakedAccountId
public boolean hasStakedAccountId()* ID of the account to which this account is staking its balances. <p> If this account is not currently staking its balances, then this field, if set, MUST be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 15;- Specified by:
hasStakedAccountIdin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- Whether the stakedAccountId field is set.
-
getStakedAccountId
* ID of the account to which this account is staking its balances. <p> If this account is not currently staking its balances, then this field, if set, MUST be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 15;- Specified by:
getStakedAccountIdin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The stakedAccountId.
-
setStakedAccountId
* ID of the account to which this account is staking its balances. <p> If this account is not currently staking its balances, then this field, if set, MUST be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 15; -
setStakedAccountId
* ID of the account to which this account is staking its balances. <p> If this account is not currently staking its balances, then this field, if set, MUST be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 15; -
mergeStakedAccountId
* ID of the account to which this account is staking its balances. <p> If this account is not currently staking its balances, then this field, if set, MUST be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 15; -
clearStakedAccountId
* ID of the account to which this account is staking its balances. <p> If this account is not currently staking its balances, then this field, if set, MUST be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 15; -
hasStakedNodeId
public boolean hasStakedNodeId()* ID of the node this account is staked to. <p> If this account is not currently staking its balances, then this field, if set, SHALL be the sentinel value of `-1`.<br/> Wallet software SHOULD surface staking issues to users and provide a simple mechanism to update staking to a new node ID in the event the prior staked node ID ceases to be valid.
int64 staked_node_id = 16;- Specified by:
hasStakedNodeIdin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- Whether the stakedNodeId field is set.
-
getStakedNodeId
public long getStakedNodeId()* ID of the node this account is staked to. <p> If this account is not currently staking its balances, then this field, if set, SHALL be the sentinel value of `-1`.<br/> Wallet software SHOULD surface staking issues to users and provide a simple mechanism to update staking to a new node ID in the event the prior staked node ID ceases to be valid.
int64 staked_node_id = 16;- Specified by:
getStakedNodeIdin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The stakedNodeId.
-
setStakedNodeId
* ID of the node this account is staked to. <p> If this account is not currently staking its balances, then this field, if set, SHALL be the sentinel value of `-1`.<br/> Wallet software SHOULD surface staking issues to users and provide a simple mechanism to update staking to a new node ID in the event the prior staked node ID ceases to be valid.
int64 staked_node_id = 16;- Parameters:
value- The stakedNodeId to set.- Returns:
- This builder for chaining.
-
clearStakedNodeId
* ID of the node this account is staked to. <p> If this account is not currently staking its balances, then this field, if set, SHALL be the sentinel value of `-1`.<br/> Wallet software SHOULD surface staking issues to users and provide a simple mechanism to update staking to a new node ID in the event the prior staked node ID ceases to be valid.
int64 staked_node_id = 16;- Returns:
- This builder for chaining.
-
getDeclineReward
public boolean getDeclineReward()* A boolean indicating that this account has chosen to decline rewards for staking its balances. <p> This account MAY still stake its balances, but SHALL NOT receive reward payments for doing so, if this value is set.
bool decline_reward = 17;- Specified by:
getDeclineRewardin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The declineReward.
-
setDeclineReward
* A boolean indicating that this account has chosen to decline rewards for staking its balances. <p> This account MAY still stake its balances, but SHALL NOT receive reward payments for doing so, if this value is set.
bool decline_reward = 17;- Parameters:
value- The declineReward to set.- Returns:
- This builder for chaining.
-
clearDeclineReward
* A boolean indicating that this account has chosen to decline rewards for staking its balances. <p> This account MAY still stake its balances, but SHALL NOT receive reward payments for doing so, if this value is set.
bool decline_reward = 17;- Returns:
- This builder for chaining.
-
getAlias
public com.google.protobuf.ByteString getAlias()* Bytes to be used as the account's alias. <p> This value, if set, MUST be one of the following values<br/> <ul> <li>The 32-byte serialized form of the ED25519 account key.</li> <li>The 33-byte _compressed_ serialized form of the ECDSA(secp256k1) account key.</li> <li>The 20-byte EVM address derived from a keccak-256 hash of the ECDSA(secp256k1) account key</li> </ul> All aliases within the network MUST be unique. If this value matches an existing account alias, this `create` transaction SHALL fail.<br/> If an account exists with a particular alias value, any transaction to transfer value _to_ that alias SHALL deposit the transferred value in the existing account, and SHALL NOT assess an account creation fee.<br/> Once set, an account alias is immutable and MUST NOT be changed.
bytes alias = 18;- Specified by:
getAliasin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The alias.
-
setAlias
* Bytes to be used as the account's alias. <p> This value, if set, MUST be one of the following values<br/> <ul> <li>The 32-byte serialized form of the ED25519 account key.</li> <li>The 33-byte _compressed_ serialized form of the ECDSA(secp256k1) account key.</li> <li>The 20-byte EVM address derived from a keccak-256 hash of the ECDSA(secp256k1) account key</li> </ul> All aliases within the network MUST be unique. If this value matches an existing account alias, this `create` transaction SHALL fail.<br/> If an account exists with a particular alias value, any transaction to transfer value _to_ that alias SHALL deposit the transferred value in the existing account, and SHALL NOT assess an account creation fee.<br/> Once set, an account alias is immutable and MUST NOT be changed.
bytes alias = 18;- Parameters:
value- The alias to set.- Returns:
- This builder for chaining.
-
clearAlias
* Bytes to be used as the account's alias. <p> This value, if set, MUST be one of the following values<br/> <ul> <li>The 32-byte serialized form of the ED25519 account key.</li> <li>The 33-byte _compressed_ serialized form of the ECDSA(secp256k1) account key.</li> <li>The 20-byte EVM address derived from a keccak-256 hash of the ECDSA(secp256k1) account key</li> </ul> All aliases within the network MUST be unique. If this value matches an existing account alias, this `create` transaction SHALL fail.<br/> If an account exists with a particular alias value, any transaction to transfer value _to_ that alias SHALL deposit the transferred value in the existing account, and SHALL NOT assess an account creation fee.<br/> Once set, an account alias is immutable and MUST NOT be changed.
bytes alias = 18;- Returns:
- This builder for chaining.
-
getHookCreationDetailsList
* Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19;- Specified by:
getHookCreationDetailsListin interfaceCryptoCreateTransactionBodyOrBuilder
-
getHookCreationDetailsCount
public int getHookCreationDetailsCount()* Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19;- Specified by:
getHookCreationDetailsCountin interfaceCryptoCreateTransactionBodyOrBuilder
-
getHookCreationDetails
* Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19;- Specified by:
getHookCreationDetailsin interfaceCryptoCreateTransactionBodyOrBuilder
-
setHookCreationDetails
public CryptoCreateTransactionBody.Builder setHookCreationDetails(int index, HookCreationDetails value) * Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19; -
setHookCreationDetails
public CryptoCreateTransactionBody.Builder setHookCreationDetails(int index, HookCreationDetails.Builder builderForValue) * Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19; -
addHookCreationDetails
* Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19; -
addHookCreationDetails
public CryptoCreateTransactionBody.Builder addHookCreationDetails(int index, HookCreationDetails value) * Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19; -
addHookCreationDetails
public CryptoCreateTransactionBody.Builder addHookCreationDetails(HookCreationDetails.Builder builderForValue) * Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19; -
addHookCreationDetails
public CryptoCreateTransactionBody.Builder addHookCreationDetails(int index, HookCreationDetails.Builder builderForValue) * Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19; -
addAllHookCreationDetails
public CryptoCreateTransactionBody.Builder addAllHookCreationDetails(Iterable<? extends HookCreationDetails> values) * Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19; -
clearHookCreationDetails
* Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19; -
removeHookCreationDetails
* Details of hooks to add immediately after creating this account.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 19; -
getDelegationAddress
public com.google.protobuf.ByteString getDelegationAddress()* The initial delegated contract address to set for the new account. <p> If set, the value MUST be 20 bytes long (EVM address). A value of `0x0000000000000000000000000000000000000000` will be ignored. If this field is set on the account, anytime a call is made to the account's address (either an EVM call within HSCS or a child call dispatched by CryptoTransfer) the EVM code of the contract referenced by `delegation_address` will be executed in the context of the account.
bytes delegation_address = 20;- Specified by:
getDelegationAddressin interfaceCryptoCreateTransactionBodyOrBuilder- Returns:
- The delegationAddress.
-
setDelegationAddress
public CryptoCreateTransactionBody.Builder setDelegationAddress(com.google.protobuf.ByteString value) * The initial delegated contract address to set for the new account. <p> If set, the value MUST be 20 bytes long (EVM address). A value of `0x0000000000000000000000000000000000000000` will be ignored. If this field is set on the account, anytime a call is made to the account's address (either an EVM call within HSCS or a child call dispatched by CryptoTransfer) the EVM code of the contract referenced by `delegation_address` will be executed in the context of the account.
bytes delegation_address = 20;- Parameters:
value- The delegationAddress to set.- Returns:
- This builder for chaining.
-
clearDelegationAddress
* The initial delegated contract address to set for the new account. <p> If set, the value MUST be 20 bytes long (EVM address). A value of `0x0000000000000000000000000000000000000000` will be ignored. If this field is set on the account, anytime a call is made to the account's address (either an EVM call within HSCS or a child call dispatched by CryptoTransfer) the EVM code of the contract referenced by `delegation_address` will be executed in the context of the account.
bytes delegation_address = 20;- Returns:
- This builder for chaining.
-