java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Account,Account.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Account,Account.Builder>
com.hedera.hashgraph.sdk.proto.Account.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,AccountOrBuilder,Cloneable
- Enclosing class:
Account
public static final class Account.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Account,Account.Builder>
implements AccountOrBuilder
* A single Account in the Hedera distributed ledger. Each Account SHALL have a unique three-part identifier, a Key, and one or more token balances.<br/> Each Account SHALL have an alias, which has multiple forms, and MAY be set automatically.<br/> Several additional items SHALL be associated with the Account to enable full functionality.<br/> Assets SHALL be represented as linked-lists with only the "head" item referenced directly in the Account, and the remaining items SHALL be accessible via the token relation or unique tokens maps.<br/> Accounts, as most items in the network, SHALL have an expiration time, recorded as seconds since the epoch, and MUST be "renewed" for a small fee at expiration. This helps to reduce the amount of inactive accounts retained in state.<br/> Another account MAY be designated to pay any renewal fees and automatically renew an account for (by default) 30-90 days at a time as a means to optionally ensure important accounts remain active.<br/> Accounts MAY participate in securing the network by "staking" the account balances to a particular network node, and receive a portion of network fees as a reward. An account MAY optionally decline these rewards but still stake its balances.<br/> An account MAY optionally require that inbound transfer transactions be signed by that account as receiver (in addition to the sender's signature).<br/> As with all network entities, Account ID SHALL be represented as shard.realm.X.<br/> Alias and contractId SHALL be additional identifiers used to connect accounts to transactions before the account is fully enabled, or in EVM contracts.<br/> --- #### Alias There is considerable complexity with `alias` (aka `evm_address`) for Accounts. Much of this comes from the existence of a "hidden" alias for almost all accounts, and the reuse of the alias field for both EVM reference and "automatic" account creation. For the purposes of this specification, we will use the following terms for clarity. - `key_alias` is the account public key as a protobuf serialized message and used for auto-creation and subsequent lookup. This is only valid if the account key is a single `primitive` key, either ED25519 or ECDSA_SECP256K1. - `evm_address` exists for every account and is one of - `contract_address`, which is the 20 byte EVM contract address per EIP-1014 - `evm_key_address`, which is the keccak-256 hash of a ECDSA_SECP256K1 `primitive` key. - This is for accounts lazy-created from EVM public keys, when the corresponding ECDSA_SECP256K1 public key is presented in a transaction signed by the private key for that public key, the account is created that key assigned, and the protobuf-serialized form is set as the account alias. - `long_zero`, is a synthetic 20 byte address inferred for "normally" created accounts. It is constructed from the "standard" AccountID as follows. - 4 byte big-endian shard number - 8 byte big-endian realm number - 8 byte big-endian entity number The `alias` field in the `Account` message SHALL contain one of four values for any given account. - The `key_alias`, if the account was created by transferring HBAR to the account referenced by `key_alias`. - The `evm_key_address` if the account was created from an EVM public key - The `contract_address` if the account belongs to an EVM contract - Not-Set/null/Bytes.EMPTY (collectively `null`) if the account was created normally If the `alias` field of an `Account` is any form of `null`, then the account MAY be referenced by `alias` in an `AccountID` by using the `long_zero` address for the account. This "hidden default" alias SHALL NOT be stored, but is synthesized by the node software as needed, and may be synthesized by an EVM contract or client software as well. An AccountID in a transaction MAY reference an `Account` with `shard`.`realm`.`alias`.<br/> If the account `alias` field is set for an Account, that value SHALL be the account alias.<br/> If the account `alias` field is not set for an Account, the `long_zero` alias SHALL be the account alias.Protobuf type
proto.Account-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllApproveForAllNftAllowances(Iterable<? extends AccountApprovalForAllAllowance> values) * A list of non-fungible token (NFT) allowances approved by this account.addAllCryptoAllowances(Iterable<? extends AccountCryptoAllowance> values) * A list of crypto (HBAR) allowances approved by this account.addAllTokenAllowances(Iterable<? extends AccountFungibleTokenAllowance> values) * A list of fungible token allowances approved by this account.addApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance value) * A list of non-fungible token (NFT) allowances approved by this account.addApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance.Builder builderForValue) * A list of non-fungible token (NFT) allowances approved by this account.* A list of non-fungible token (NFT) allowances approved by this account.addApproveForAllNftAllowances(AccountApprovalForAllAllowance.Builder builderForValue) * A list of non-fungible token (NFT) allowances approved by this account.addCryptoAllowances(int index, AccountCryptoAllowance value) * A list of crypto (HBAR) allowances approved by this account.addCryptoAllowances(int index, AccountCryptoAllowance.Builder builderForValue) * A list of crypto (HBAR) allowances approved by this account.* A list of crypto (HBAR) allowances approved by this account.addCryptoAllowances(AccountCryptoAllowance.Builder builderForValue) * A list of crypto (HBAR) allowances approved by this account.addTokenAllowances(int index, AccountFungibleTokenAllowance value) * A list of fungible token allowances approved by this account.addTokenAllowances(int index, AccountFungibleTokenAllowance.Builder builderForValue) * A list of fungible token allowances approved by this account.* A list of fungible token allowances approved by this account.addTokenAllowances(AccountFungibleTokenAllowance.Builder builderForValue) * A list of fungible token allowances approved by this account.* The unique ID of this account.* An account EVM alias.* A list of non-fungible token (NFT) allowances approved by this account.* An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing.* A count of the number of seconds to extend this account's expiration.* A count of smart contract key-value pairs.<br/> If this account is a smart-contract, this is the number of key-value pairs stored on the contract.* A list of crypto (HBAR) allowances approved by this account.* A boolean indicating that this account has chosen to decline rewards for staking its balances.* The delegated contract address set for this account.* A boolean indicating that this account is deleted.* A nonce of this account for Ethereum interoperability.* The current expiration time of this account, in seconds since the epoch.* A flag indicating that the account is expired and pending removal.* A contract storage key.<br/> This is the first key in the doubly-linked list of this contract's storage mappings.* If the account has more than zero hooks in use, the id of the first hook in its doubly-linked list of hooks.* A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message.* A serial number in the NftID at the head of the linked list for this account from unique tokens map.* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.* A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message.clearKey()* The key to be used to sign transactions from this account, if any.* A maximum for the number of tokens that can be automatically associated with this account.* A short description of this account.* A count of tokens associated with this account.* The number of storage slots in use by this account's EVM hooks.* The number of hooks currently in use on this account.* A number of non-fungible tokens (NTFs) owned by the account.* A number of pending airdrops.* A count of tokens with a positive balance associated with this account.* A count of tokens for which this account is the treasury account.* A boolean indicating that the account requires a receiver signature for inbound token transfer transactions.* A boolean indicating that this account is owned by a smart contract.* An amount of HBAR staked by this account at the start of the last reward period.* An identifier for the account to which this account is staking its balances as a proxy.* An identifier for the node this account is staked to.* The amount of HBAR staked to this account by others.* If this account stakes to another account, this value SHALL be set to the time when the current period for staking and reward calculations began.* The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR).* A list of fungible token allowances approved by this account.* A count of used auto-association slots.* The unique ID of this account.com.google.protobuf.ByteStringgetAlias()* An account EVM alias.getApproveForAllNftAllowances(int index) * A list of non-fungible token (NFT) allowances approved by this account.int* A list of non-fungible token (NFT) allowances approved by this account.* A list of non-fungible token (NFT) allowances approved by this account.* An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing.long* A count of the number of seconds to extend this account's expiration.int* A count of smart contract key-value pairs.<br/> If this account is a smart-contract, this is the number of key-value pairs stored on the contract.getCryptoAllowances(int index) * A list of crypto (HBAR) allowances approved by this account.int* A list of crypto (HBAR) allowances approved by this account.* A list of crypto (HBAR) allowances approved by this account.boolean* A boolean indicating that this account has chosen to decline rewards for staking its balances.com.google.protobuf.ByteString* The delegated contract address set for this account.boolean* A boolean indicating that this account is deleted.long* A nonce of this account for Ethereum interoperability.long* The current expiration time of this account, in seconds since the epoch.boolean* A flag indicating that the account is expired and pending removal.com.google.protobuf.ByteString* A contract storage key.<br/> This is the first key in the doubly-linked list of this contract's storage mappings.long* If the account has more than zero hooks in use, the id of the first hook in its doubly-linked list of hooks.* A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message.long* A serial number in the NftID at the head of the linked list for this account from unique tokens map.* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.* A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message.getKey()* The key to be used to sign transactions from this account, if any.int* A maximum for the number of tokens that can be automatically associated with this account.getMemo()* A short description of this account.com.google.protobuf.ByteString* A short description of this account.int* A count of tokens associated with this account.long* The number of storage slots in use by this account's EVM hooks.long* The number of hooks currently in use on this account.long* A number of non-fungible tokens (NTFs) owned by the account.long* A number of pending airdrops.int* A count of tokens with a positive balance associated with this account.int* A count of tokens for which this account is the treasury account.boolean* A boolean indicating that the account requires a receiver signature for inbound token transfer transactions.boolean* A boolean indicating that this account is owned by a smart contract.long* An amount of HBAR staked by this account at the start of the last reward period.* An identifier for the account to which this account is staking its balances as a proxy.long* An identifier for the node this account is staked to.long* The amount of HBAR staked to this account by others.long* If this account stakes to another account, this value SHALL be set to the time when the current period for staking and reward calculations began.long* The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR).getTokenAllowances(int index) * A list of fungible token allowances approved by this account.int* A list of fungible token allowances approved by this account.* A list of fungible token allowances approved by this account.int* A count of used auto-association slots.boolean* The unique ID of this account.boolean* An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing.boolean* A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message.boolean* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.boolean* A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message.booleanhasKey()* The key to be used to sign transactions from this account, if any.boolean* An identifier for the account to which this account is staking its balances as a proxy.boolean* An identifier for the node this account is staked to.mergeAccountId(AccountID value) * The unique ID of this account.mergeAutoRenewAccountId(AccountID value) * An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing.mergeHeadNftId(NftID value) * A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message.* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.mergeHeadTokenId(TokenID value) * A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message.* The key to be used to sign transactions from this account, if any.mergeStakedAccountId(AccountID value) * An identifier for the account to which this account is staking its balances as a proxy.removeApproveForAllNftAllowances(int index) * A list of non-fungible token (NFT) allowances approved by this account.removeCryptoAllowances(int index) * A list of crypto (HBAR) allowances approved by this account.removeTokenAllowances(int index) * A list of fungible token allowances approved by this account.setAccountId(AccountID value) * The unique ID of this account.setAccountId(AccountID.Builder builderForValue) * The unique ID of this account.setAlias(com.google.protobuf.ByteString value) * An account EVM alias.setApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance value) * A list of non-fungible token (NFT) allowances approved by this account.setApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance.Builder builderForValue) * A list of non-fungible token (NFT) allowances approved by this account.setAutoRenewAccountId(AccountID value) * An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing.setAutoRenewAccountId(AccountID.Builder builderForValue) * An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing.setAutoRenewSeconds(long value) * A count of the number of seconds to extend this account's expiration.setContractKvPairsNumber(int value) * A count of smart contract key-value pairs.<br/> If this account is a smart-contract, this is the number of key-value pairs stored on the contract.setCryptoAllowances(int index, AccountCryptoAllowance value) * A list of crypto (HBAR) allowances approved by this account.setCryptoAllowances(int index, AccountCryptoAllowance.Builder builderForValue) * A list of crypto (HBAR) allowances approved by this account.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 delegated contract address set for this account.setDeleted(boolean value) * A boolean indicating that this account is deleted.setEthereumNonce(long value) * A nonce of this account for Ethereum interoperability.setExpirationSecond(long value) * The current expiration time of this account, in seconds since the epoch.setExpiredAndPendingRemoval(boolean value) * A flag indicating that the account is expired and pending removal.setFirstContractStorageKey(com.google.protobuf.ByteString value) * A contract storage key.<br/> This is the first key in the doubly-linked list of this contract's storage mappings.setFirstHookId(long value) * If the account has more than zero hooks in use, the id of the first hook in its doubly-linked list of hooks.setHeadNftId(NftID value) * A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message.setHeadNftId(NftID.Builder builderForValue) * A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message.setHeadNftSerialNumber(long value) * A serial number in the NftID at the head of the linked list for this account from unique tokens map.* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.setHeadPendingAirdropId(PendingAirdropId.Builder builderForValue) * A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.setHeadTokenId(TokenID value) * A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message.setHeadTokenId(TokenID.Builder builderForValue) * A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message.* The key to be used to sign transactions from this account, if any.setKey(Key.Builder builderForValue) * The key to be used to sign transactions from this account, if any.setMaxAutoAssociations(int value) * A maximum for the number of tokens that can be automatically associated with this account.* A short description of this account.setMemoBytes(com.google.protobuf.ByteString value) * A short description of this account.setNumberAssociations(int value) * A count of tokens associated with this account.setNumberEvmHookStorageSlots(long value) * The number of storage slots in use by this account's EVM hooks.setNumberHooksInUse(long value) * The number of hooks currently in use on this account.setNumberOwnedNfts(long value) * A number of non-fungible tokens (NTFs) owned by the account.setNumberPendingAirdrops(long value) * A number of pending airdrops.setNumberPositiveBalances(int value) * A count of tokens with a positive balance associated with this account.setNumberTreasuryTitles(int value) * A count of tokens for which this account is the treasury account.setReceiverSigRequired(boolean value) * A boolean indicating that the account requires a receiver signature for inbound token transfer transactions.setSmartContract(boolean value) * A boolean indicating that this account is owned by a smart contract.setStakeAtStartOfLastRewardedPeriod(long value) * An amount of HBAR staked by this account at the start of the last reward period.setStakedAccountId(AccountID value) * An identifier for the account to which this account is staking its balances as a proxy.setStakedAccountId(AccountID.Builder builderForValue) * An identifier for the account to which this account is staking its balances as a proxy.setStakedNodeId(long value) * An identifier for the node this account is staked to.setStakedToMe(long value) * The amount of HBAR staked to this account by others.setStakePeriodStart(long value) * If this account stakes to another account, this value SHALL be set to the time when the current period for staking and reward calculations began.setTinybarBalance(long value) * The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR).setTokenAllowances(int index, AccountFungibleTokenAllowance value) * A list of fungible token allowances approved by this account.setTokenAllowances(int index, AccountFungibleTokenAllowance.Builder builderForValue) * A list of fungible token allowances approved by this account.setUsedAutoAssociations(int value) * A count of used auto-association slots.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 interfaceAccountOrBuilder
-
clearStakedId
-
hasAccountId
public boolean hasAccountId()* The unique ID of this account. <p> An account ID, when assigned to this field, SHALL be of the form `shard.realm.number`.<br/> Transactions MAY reference the account by alias, but the account itself MUST always have a purely numeric identifier. This numeric ID is the value used to reference the account in query responses, transaction receipts, transaction records, and the block stream.
.proto.AccountID account_id = 1;- Specified by:
hasAccountIdin interfaceAccountOrBuilder- Returns:
- Whether the accountId field is set.
-
getAccountId
* The unique ID of this account. <p> An account ID, when assigned to this field, SHALL be of the form `shard.realm.number`.<br/> Transactions MAY reference the account by alias, but the account itself MUST always have a purely numeric identifier. This numeric ID is the value used to reference the account in query responses, transaction receipts, transaction records, and the block stream.
.proto.AccountID account_id = 1;- Specified by:
getAccountIdin interfaceAccountOrBuilder- Returns:
- The accountId.
-
setAccountId
* The unique ID of this account. <p> An account ID, when assigned to this field, SHALL be of the form `shard.realm.number`.<br/> Transactions MAY reference the account by alias, but the account itself MUST always have a purely numeric identifier. This numeric ID is the value used to reference the account in query responses, transaction receipts, transaction records, and the block stream.
.proto.AccountID account_id = 1; -
setAccountId
* The unique ID of this account. <p> An account ID, when assigned to this field, SHALL be of the form `shard.realm.number`.<br/> Transactions MAY reference the account by alias, but the account itself MUST always have a purely numeric identifier. This numeric ID is the value used to reference the account in query responses, transaction receipts, transaction records, and the block stream.
.proto.AccountID account_id = 1; -
mergeAccountId
* The unique ID of this account. <p> An account ID, when assigned to this field, SHALL be of the form `shard.realm.number`.<br/> Transactions MAY reference the account by alias, but the account itself MUST always have a purely numeric identifier. This numeric ID is the value used to reference the account in query responses, transaction receipts, transaction records, and the block stream.
.proto.AccountID account_id = 1; -
clearAccountId
* The unique ID of this account. <p> An account ID, when assigned to this field, SHALL be of the form `shard.realm.number`.<br/> Transactions MAY reference the account by alias, but the account itself MUST always have a purely numeric identifier. This numeric ID is the value used to reference the account in query responses, transaction receipts, transaction records, and the block stream.
.proto.AccountID account_id = 1; -
getAlias
public com.google.protobuf.ByteString getAlias()* An account EVM alias. <p> This is a value used in some contexts to reference an account when the numeric account identifier is not available.<br/> This field, when set to a non-default value, is immutable and SHALL NOT be changed.
bytes alias = 2;- Specified by:
getAliasin interfaceAccountOrBuilder- Returns:
- The alias.
-
setAlias
* An account EVM alias. <p> This is a value used in some contexts to reference an account when the numeric account identifier is not available.<br/> This field, when set to a non-default value, is immutable and SHALL NOT be changed.
bytes alias = 2;- Parameters:
value- The alias to set.- Returns:
- This builder for chaining.
-
clearAlias
* An account EVM alias. <p> This is a value used in some contexts to reference an account when the numeric account identifier is not available.<br/> This field, when set to a non-default value, is immutable and SHALL NOT be changed.
bytes alias = 2;- Returns:
- This builder for chaining.
-
hasKey
public boolean hasKey()* The key to be used to sign transactions from this account, if any. <p> This key SHALL NOT be set for hollow accounts until the account is finalized.<br/> This key SHALL be set on all other accounts, except for certain immutable accounts (0.0.800 and 0.0.801) necessary for network function and otherwise secured by the governing council.
.proto.Key key = 3;- Specified by:
hasKeyin interfaceAccountOrBuilder- Returns:
- Whether the key field is set.
-
getKey
* The key to be used to sign transactions from this account, if any. <p> This key SHALL NOT be set for hollow accounts until the account is finalized.<br/> This key SHALL be set on all other accounts, except for certain immutable accounts (0.0.800 and 0.0.801) necessary for network function and otherwise secured by the governing council.
.proto.Key key = 3;- Specified by:
getKeyin interfaceAccountOrBuilder- Returns:
- The key.
-
setKey
* The key to be used to sign transactions from this account, if any. <p> This key SHALL NOT be set for hollow accounts until the account is finalized.<br/> This key SHALL be set on all other accounts, except for certain immutable accounts (0.0.800 and 0.0.801) necessary for network function and otherwise secured by the governing council.
.proto.Key key = 3; -
setKey
* The key to be used to sign transactions from this account, if any. <p> This key SHALL NOT be set for hollow accounts until the account is finalized.<br/> This key SHALL be set on all other accounts, except for certain immutable accounts (0.0.800 and 0.0.801) necessary for network function and otherwise secured by the governing council.
.proto.Key key = 3; -
mergeKey
* The key to be used to sign transactions from this account, if any. <p> This key SHALL NOT be set for hollow accounts until the account is finalized.<br/> This key SHALL be set on all other accounts, except for certain immutable accounts (0.0.800 and 0.0.801) necessary for network function and otherwise secured by the governing council.
.proto.Key key = 3; -
clearKey
* The key to be used to sign transactions from this account, if any. <p> This key SHALL NOT be set for hollow accounts until the account is finalized.<br/> This key SHALL be set on all other accounts, except for certain immutable accounts (0.0.800 and 0.0.801) necessary for network function and otherwise secured by the governing council.
.proto.Key key = 3; -
getExpirationSecond
public long getExpirationSecond()* The current expiration time of this account, in seconds since the epoch. <p> For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/> This account SHALL be due standard renewal fees when the network consensus time exceeds this time.<br/> If rent and expiration are enabled for the network, and automatic renewal is enabled for this account, renewal fees SHALL be charged after this time, and, if charged, the expiration time SHALL be extended for another renewal period.<br/> This account MAY be expired and removed from state at any point after this time if not renewed.<br/> An account holder MAY extend this time by submitting an account update transaction to modify expiration time, subject to the current maximum expiration time for the network.
int64 expiration_second = 4;- Specified by:
getExpirationSecondin interfaceAccountOrBuilder- Returns:
- The expirationSecond.
-
setExpirationSecond
* The current expiration time of this account, in seconds since the epoch. <p> For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/> This account SHALL be due standard renewal fees when the network consensus time exceeds this time.<br/> If rent and expiration are enabled for the network, and automatic renewal is enabled for this account, renewal fees SHALL be charged after this time, and, if charged, the expiration time SHALL be extended for another renewal period.<br/> This account MAY be expired and removed from state at any point after this time if not renewed.<br/> An account holder MAY extend this time by submitting an account update transaction to modify expiration time, subject to the current maximum expiration time for the network.
int64 expiration_second = 4;- Parameters:
value- The expirationSecond to set.- Returns:
- This builder for chaining.
-
clearExpirationSecond
* The current expiration time of this account, in seconds since the epoch. <p> For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/> This account SHALL be due standard renewal fees when the network consensus time exceeds this time.<br/> If rent and expiration are enabled for the network, and automatic renewal is enabled for this account, renewal fees SHALL be charged after this time, and, if charged, the expiration time SHALL be extended for another renewal period.<br/> This account MAY be expired and removed from state at any point after this time if not renewed.<br/> An account holder MAY extend this time by submitting an account update transaction to modify expiration time, subject to the current maximum expiration time for the network.
int64 expiration_second = 4;- Returns:
- This builder for chaining.
-
getTinybarBalance
public long getTinybarBalance()* The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR). <p> This value is a signed integer for efficiency, but MUST always be a whole number.
int64 tinybar_balance = 5;- Specified by:
getTinybarBalancein interfaceAccountOrBuilder- Returns:
- The tinybarBalance.
-
setTinybarBalance
* The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR). <p> This value is a signed integer for efficiency, but MUST always be a whole number.
int64 tinybar_balance = 5;- Parameters:
value- The tinybarBalance to set.- Returns:
- This builder for chaining.
-
clearTinybarBalance
* The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR). <p> This value is a signed integer for efficiency, but MUST always be a whole number.
int64 tinybar_balance = 5;- Returns:
- This builder for chaining.
-
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 = 6;- Specified by:
getMemoin interfaceAccountOrBuilder- 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 = 6;- Specified by:
getMemoBytesin interfaceAccountOrBuilder- 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 = 6;- 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 = 6;- 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 = 6;- Parameters:
value- The bytes for memo to set.- Returns:
- This builder for chaining.
-
getDeleted
public boolean getDeleted()* A boolean indicating that this account is deleted.
bool deleted = 7;- Specified by:
getDeletedin interfaceAccountOrBuilder- Returns:
- The deleted.
-
setDeleted
* A boolean indicating that this account is deleted.
bool deleted = 7;- Parameters:
value- The deleted to set.- Returns:
- This builder for chaining.
-
clearDeleted
* A boolean indicating that this account is deleted.
bool deleted = 7;- Returns:
- This builder for chaining.
-
getStakedToMe
public long getStakedToMe()* The amount of HBAR staked to this account by others.
int64 staked_to_me = 8;- Specified by:
getStakedToMein interfaceAccountOrBuilder- Returns:
- The stakedToMe.
-
setStakedToMe
* The amount of HBAR staked to this account by others.
int64 staked_to_me = 8;- Parameters:
value- The stakedToMe to set.- Returns:
- This builder for chaining.
-
clearStakedToMe
* The amount of HBAR staked to this account by others.
int64 staked_to_me = 8;- Returns:
- This builder for chaining.
-
getStakePeriodStart
public long getStakePeriodStart()* If this account stakes to another account, this value SHALL be set to the time when the current period for staking and reward calculations began.
int64 stake_period_start = 9;- Specified by:
getStakePeriodStartin interfaceAccountOrBuilder- Returns:
- The stakePeriodStart.
-
setStakePeriodStart
* If this account stakes to another account, this value SHALL be set to the time when the current period for staking and reward calculations began.
int64 stake_period_start = 9;- Parameters:
value- The stakePeriodStart to set.- Returns:
- This builder for chaining.
-
clearStakePeriodStart
* If this account stakes to another account, this value SHALL be set to the time when the current period for staking and reward calculations began.
int64 stake_period_start = 9;- Returns:
- This builder for chaining.
-
hasStakedAccountId
public boolean hasStakedAccountId()* An identifier for the account to which this account is staking its balances as a proxy. <p> If this account is not currently staking its balances, then this field, if set, SHALL be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 10;- Specified by:
hasStakedAccountIdin interfaceAccountOrBuilder- Returns:
- Whether the stakedAccountId field is set.
-
getStakedAccountId
* An identifier for the account to which this account is staking its balances as a proxy. <p> If this account is not currently staking its balances, then this field, if set, SHALL be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 10;- Specified by:
getStakedAccountIdin interfaceAccountOrBuilder- Returns:
- The stakedAccountId.
-
setStakedAccountId
* An identifier for the account to which this account is staking its balances as a proxy. <p> If this account is not currently staking its balances, then this field, if set, SHALL be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 10; -
setStakedAccountId
* An identifier for the account to which this account is staking its balances as a proxy. <p> If this account is not currently staking its balances, then this field, if set, SHALL be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 10; -
mergeStakedAccountId
* An identifier for the account to which this account is staking its balances as a proxy. <p> If this account is not currently staking its balances, then this field, if set, SHALL be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 10; -
clearStakedAccountId
* An identifier for the account to which this account is staking its balances as a proxy. <p> If this account is not currently staking its balances, then this field, if set, SHALL be the sentinel value of `0.0.0`.
.proto.AccountID staked_account_id = 10; -
hasStakedNodeId
public boolean hasStakedNodeId()* An identifier for 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`. 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. <p> <blockquote>Note: node IDs do fluctuate as node operators change. The Account owner MUST submit a new transaction to change this value if the current node ID changes or ceases to operate as a node. An account with an invalid `staked_node_id` SHALL NOT participate in staking until the `staked_node_id` is updated to a valid node ID. </blockquote>
int64 staked_node_id = 11;- Specified by:
hasStakedNodeIdin interfaceAccountOrBuilder- Returns:
- Whether the stakedNodeId field is set.
-
getStakedNodeId
public long getStakedNodeId()* An identifier for 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`. 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. <p> <blockquote>Note: node IDs do fluctuate as node operators change. The Account owner MUST submit a new transaction to change this value if the current node ID changes or ceases to operate as a node. An account with an invalid `staked_node_id` SHALL NOT participate in staking until the `staked_node_id` is updated to a valid node ID. </blockquote>
int64 staked_node_id = 11;- Specified by:
getStakedNodeIdin interfaceAccountOrBuilder- Returns:
- The stakedNodeId.
-
setStakedNodeId
* An identifier for 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`. 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. <p> <blockquote>Note: node IDs do fluctuate as node operators change. The Account owner MUST submit a new transaction to change this value if the current node ID changes or ceases to operate as a node. An account with an invalid `staked_node_id` SHALL NOT participate in staking until the `staked_node_id` is updated to a valid node ID. </blockquote>
int64 staked_node_id = 11;- Parameters:
value- The stakedNodeId to set.- Returns:
- This builder for chaining.
-
clearStakedNodeId
* An identifier for 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`. 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. <p> <blockquote>Note: node IDs do fluctuate as node operators change. The Account owner MUST submit a new transaction to change this value if the current node ID changes or ceases to operate as a node. An account with an invalid `staked_node_id` SHALL NOT participate in staking until the `staked_node_id` is updated to a valid node ID. </blockquote>
int64 staked_node_id = 11;- 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.
bool decline_reward = 12;- Specified by:
getDeclineRewardin interfaceAccountOrBuilder- 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.
bool decline_reward = 12;- 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.
bool decline_reward = 12;- Returns:
- This builder for chaining.
-
getReceiverSigRequired
public boolean getReceiverSigRequired()* A boolean indicating that the account requires a receiver signature for inbound token transfer transactions. <p> If this value is `true` then a transaction to transfer tokens to this account SHALL NOT succeed unless this account has signed the transfer transaction.
bool receiver_sig_required = 13;- Specified by:
getReceiverSigRequiredin interfaceAccountOrBuilder- Returns:
- The receiverSigRequired.
-
setReceiverSigRequired
* A boolean indicating that the account requires a receiver signature for inbound token transfer transactions. <p> If this value is `true` then a transaction to transfer tokens to this account SHALL NOT succeed unless this account has signed the transfer transaction.
bool receiver_sig_required = 13;- Parameters:
value- The receiverSigRequired to set.- Returns:
- This builder for chaining.
-
clearReceiverSigRequired
* A boolean indicating that the account requires a receiver signature for inbound token transfer transactions. <p> If this value is `true` then a transaction to transfer tokens to this account SHALL NOT succeed unless this account has signed the transfer transaction.
bool receiver_sig_required = 13;- Returns:
- This builder for chaining.
-
hasHeadTokenId
public boolean hasHeadTokenId()* A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message. The "head" item in that list is found by looking up the TokenRelation with this Account's account_id and this head_token_id. Each subsequent item in the list is found via similar lookup with both an AccountID and a TokenID.
.proto.TokenID head_token_id = 14;- Specified by:
hasHeadTokenIdin interfaceAccountOrBuilder- Returns:
- Whether the headTokenId field is set.
-
getHeadTokenId
* A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message. The "head" item in that list is found by looking up the TokenRelation with this Account's account_id and this head_token_id. Each subsequent item in the list is found via similar lookup with both an AccountID and a TokenID.
.proto.TokenID head_token_id = 14;- Specified by:
getHeadTokenIdin interfaceAccountOrBuilder- Returns:
- The headTokenId.
-
setHeadTokenId
* A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message. The "head" item in that list is found by looking up the TokenRelation with this Account's account_id and this head_token_id. Each subsequent item in the list is found via similar lookup with both an AccountID and a TokenID.
.proto.TokenID head_token_id = 14; -
setHeadTokenId
* A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message. The "head" item in that list is found by looking up the TokenRelation with this Account's account_id and this head_token_id. Each subsequent item in the list is found via similar lookup with both an AccountID and a TokenID.
.proto.TokenID head_token_id = 14; -
mergeHeadTokenId
* A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message. The "head" item in that list is found by looking up the TokenRelation with this Account's account_id and this head_token_id. Each subsequent item in the list is found via similar lookup with both an AccountID and a TokenID.
.proto.TokenID head_token_id = 14; -
clearHeadTokenId
* A token ID at the head of the linked list for this account from the token relations map.<br/> The token relations are connected by including the "next" and "previous" TokenID in each TokenRelation message. The "head" item in that list is found by looking up the TokenRelation with this Account's account_id and this head_token_id. Each subsequent item in the list is found via similar lookup with both an AccountID and a TokenID.
.proto.TokenID head_token_id = 14; -
hasHeadNftId
public boolean hasHeadNftId()* A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message. The "head" item in that list is found by looking up the Nft with ID matching this head_nft_id. Each subsequent item in the list is found via similar lookup with the next or previous NftID.
.proto.NftID head_nft_id = 15;- Specified by:
hasHeadNftIdin interfaceAccountOrBuilder- Returns:
- Whether the headNftId field is set.
-
getHeadNftId
* A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message. The "head" item in that list is found by looking up the Nft with ID matching this head_nft_id. Each subsequent item in the list is found via similar lookup with the next or previous NftID.
.proto.NftID head_nft_id = 15;- Specified by:
getHeadNftIdin interfaceAccountOrBuilder- Returns:
- The headNftId.
-
setHeadNftId
* A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message. The "head" item in that list is found by looking up the Nft with ID matching this head_nft_id. Each subsequent item in the list is found via similar lookup with the next or previous NftID.
.proto.NftID head_nft_id = 15; -
setHeadNftId
* A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message. The "head" item in that list is found by looking up the Nft with ID matching this head_nft_id. Each subsequent item in the list is found via similar lookup with the next or previous NftID.
.proto.NftID head_nft_id = 15; -
mergeHeadNftId
* A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message. The "head" item in that list is found by looking up the Nft with ID matching this head_nft_id. Each subsequent item in the list is found via similar lookup with the next or previous NftID.
.proto.NftID head_nft_id = 15; -
clearHeadNftId
* A NftID at the head of the linked list for this account from the unique tokens map.<br/> The unique token relations are connected by including the "next" and "previous" NftID in each Nft message. The "head" item in that list is found by looking up the Nft with ID matching this head_nft_id. Each subsequent item in the list is found via similar lookup with the next or previous NftID.
.proto.NftID head_nft_id = 15; -
getHeadNftSerialNumber
public long getHeadNftSerialNumber()* A serial number in the NftID at the head of the linked list for this account from unique tokens map. <p> This MUST match the `serial_number` field of `head_nft_id`.
int64 head_nft_serial_number = 16;- Specified by:
getHeadNftSerialNumberin interfaceAccountOrBuilder- Returns:
- The headNftSerialNumber.
-
setHeadNftSerialNumber
* A serial number in the NftID at the head of the linked list for this account from unique tokens map. <p> This MUST match the `serial_number` field of `head_nft_id`.
int64 head_nft_serial_number = 16;- Parameters:
value- The headNftSerialNumber to set.- Returns:
- This builder for chaining.
-
clearHeadNftSerialNumber
* A serial number in the NftID at the head of the linked list for this account from unique tokens map. <p> This MUST match the `serial_number` field of `head_nft_id`.
int64 head_nft_serial_number = 16;- Returns:
- This builder for chaining.
-
getNumberOwnedNfts
public long getNumberOwnedNfts()* A number of non-fungible tokens (NTFs) owned by the account.
int64 number_owned_nfts = 17;- Specified by:
getNumberOwnedNftsin interfaceAccountOrBuilder- Returns:
- The numberOwnedNfts.
-
setNumberOwnedNfts
* A number of non-fungible tokens (NTFs) owned by the account.
int64 number_owned_nfts = 17;- Parameters:
value- The numberOwnedNfts to set.- Returns:
- This builder for chaining.
-
clearNumberOwnedNfts
* A number of non-fungible tokens (NTFs) owned by the account.
int64 number_owned_nfts = 17;- Returns:
- This builder for chaining.
-
getMaxAutoAssociations
public int getMaxAutoAssociations()* A maximum for the number of tokens that can be automatically associated with this account. <p> If this is less than or equal to `used_auto_associations` (or 0), then this account MUST manually associate with a token before 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_auto_associations = 18;- Specified by:
getMaxAutoAssociationsin interfaceAccountOrBuilder- Returns:
- The maxAutoAssociations.
-
setMaxAutoAssociations
* A maximum for the number of tokens that can be automatically associated with this account. <p> If this is less than or equal to `used_auto_associations` (or 0), then this account MUST manually associate with a token before 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_auto_associations = 18;- Parameters:
value- The maxAutoAssociations to set.- Returns:
- This builder for chaining.
-
clearMaxAutoAssociations
* A maximum for the number of tokens that can be automatically associated with this account. <p> If this is less than or equal to `used_auto_associations` (or 0), then this account MUST manually associate with a token before 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_auto_associations = 18;- Returns:
- This builder for chaining.
-
getUsedAutoAssociations
public int getUsedAutoAssociations()* A count of used auto-association slots. <p> If this is greater than, or equal to, the current value of `max_auto_associations`, then this account MUST manually associate with a new token before transacting in that token.
int32 used_auto_associations = 19;- Specified by:
getUsedAutoAssociationsin interfaceAccountOrBuilder- Returns:
- The usedAutoAssociations.
-
setUsedAutoAssociations
* A count of used auto-association slots. <p> If this is greater than, or equal to, the current value of `max_auto_associations`, then this account MUST manually associate with a new token before transacting in that token.
int32 used_auto_associations = 19;- Parameters:
value- The usedAutoAssociations to set.- Returns:
- This builder for chaining.
-
clearUsedAutoAssociations
* A count of used auto-association slots. <p> If this is greater than, or equal to, the current value of `max_auto_associations`, then this account MUST manually associate with a new token before transacting in that token.
int32 used_auto_associations = 19;- Returns:
- This builder for chaining.
-
getNumberAssociations
public int getNumberAssociations()* A count of tokens associated with this account. <p> This value determines a portion of the renewal fee for this account.
int32 number_associations = 20;- Specified by:
getNumberAssociationsin interfaceAccountOrBuilder- Returns:
- The numberAssociations.
-
setNumberAssociations
* A count of tokens associated with this account. <p> This value determines a portion of the renewal fee for this account.
int32 number_associations = 20;- Parameters:
value- The numberAssociations to set.- Returns:
- This builder for chaining.
-
clearNumberAssociations
* A count of tokens associated with this account. <p> This value determines a portion of the renewal fee for this account.
int32 number_associations = 20;- Returns:
- This builder for chaining.
-
getSmartContract
public boolean getSmartContract()* A boolean indicating that this account is owned by a smart contract.
bool smart_contract = 21;- Specified by:
getSmartContractin interfaceAccountOrBuilder- Returns:
- The smartContract.
-
setSmartContract
* A boolean indicating that this account is owned by a smart contract.
bool smart_contract = 21;- Parameters:
value- The smartContract to set.- Returns:
- This builder for chaining.
-
clearSmartContract
* A boolean indicating that this account is owned by a smart contract.
bool smart_contract = 21;- Returns:
- This builder for chaining.
-
getNumberPositiveBalances
public int getNumberPositiveBalances()* A count of tokens with a positive balance associated with this account. <p> If the account has a positive balance in any token, it SHALL NOT be deleted.
int32 number_positive_balances = 22;- Specified by:
getNumberPositiveBalancesin interfaceAccountOrBuilder- Returns:
- The numberPositiveBalances.
-
setNumberPositiveBalances
* A count of tokens with a positive balance associated with this account. <p> If the account has a positive balance in any token, it SHALL NOT be deleted.
int32 number_positive_balances = 22;- Parameters:
value- The numberPositiveBalances to set.- Returns:
- This builder for chaining.
-
clearNumberPositiveBalances
* A count of tokens with a positive balance associated with this account. <p> If the account has a positive balance in any token, it SHALL NOT be deleted.
int32 number_positive_balances = 22;- Returns:
- This builder for chaining.
-
getEthereumNonce
public long getEthereumNonce()* A nonce of this account for Ethereum interoperability.
int64 ethereum_nonce = 23;- Specified by:
getEthereumNoncein interfaceAccountOrBuilder- Returns:
- The ethereumNonce.
-
setEthereumNonce
* A nonce of this account for Ethereum interoperability.
int64 ethereum_nonce = 23;- Parameters:
value- The ethereumNonce to set.- Returns:
- This builder for chaining.
-
clearEthereumNonce
* A nonce of this account for Ethereum interoperability.
int64 ethereum_nonce = 23;- Returns:
- This builder for chaining.
-
getStakeAtStartOfLastRewardedPeriod
public long getStakeAtStartOfLastRewardedPeriod()* An amount of HBAR staked by this account at the start of the last reward period.
int64 stake_at_start_of_last_rewarded_period = 24;- Specified by:
getStakeAtStartOfLastRewardedPeriodin interfaceAccountOrBuilder- Returns:
- The stakeAtStartOfLastRewardedPeriod.
-
setStakeAtStartOfLastRewardedPeriod
* An amount of HBAR staked by this account at the start of the last reward period.
int64 stake_at_start_of_last_rewarded_period = 24;- Parameters:
value- The stakeAtStartOfLastRewardedPeriod to set.- Returns:
- This builder for chaining.
-
clearStakeAtStartOfLastRewardedPeriod
* An amount of HBAR staked by this account at the start of the last reward period.
int64 stake_at_start_of_last_rewarded_period = 24;- Returns:
- This builder for chaining.
-
hasAutoRenewAccountId
public boolean hasAutoRenewAccountId()* An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing. <p> If this is set, and this account lack sufficient HBAR balance to pay renewal fees when due, then the network SHALL deduct the necessary fees from the designated auto renew account, if that account has sufficient balance.
.proto.AccountID auto_renew_account_id = 25;- Specified by:
hasAutoRenewAccountIdin interfaceAccountOrBuilder- Returns:
- Whether the autoRenewAccountId field is set.
-
getAutoRenewAccountId
* An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing. <p> If this is set, and this account lack sufficient HBAR balance to pay renewal fees when due, then the network SHALL deduct the necessary fees from the designated auto renew account, if that account has sufficient balance.
.proto.AccountID auto_renew_account_id = 25;- Specified by:
getAutoRenewAccountIdin interfaceAccountOrBuilder- Returns:
- The autoRenewAccountId.
-
setAutoRenewAccountId
* An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing. <p> If this is set, and this account lack sufficient HBAR balance to pay renewal fees when due, then the network SHALL deduct the necessary fees from the designated auto renew account, if that account has sufficient balance.
.proto.AccountID auto_renew_account_id = 25; -
setAutoRenewAccountId
* An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing. <p> If this is set, and this account lack sufficient HBAR balance to pay renewal fees when due, then the network SHALL deduct the necessary fees from the designated auto renew account, if that account has sufficient balance.
.proto.AccountID auto_renew_account_id = 25; -
mergeAutoRenewAccountId
* An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing. <p> If this is set, and this account lack sufficient HBAR balance to pay renewal fees when due, then the network SHALL deduct the necessary fees from the designated auto renew account, if that account has sufficient balance.
.proto.AccountID auto_renew_account_id = 25; -
clearAutoRenewAccountId
* An account identifier for automatic renewal.<br/> This is the identifier of another account, in the same shard and realm as this account, that has signed a transaction allowing the network to use its balance, if needed, to automatically extend this account's expiration time during automatic renewal processing. <p> If this is set, and this account lack sufficient HBAR balance to pay renewal fees when due, then the network SHALL deduct the necessary fees from the designated auto renew account, if that account has sufficient balance.
.proto.AccountID auto_renew_account_id = 25; -
getAutoRenewSeconds
public long getAutoRenewSeconds()* A count of the number of seconds to extend this account's expiration. <p> The network SHALL extend the account's expiration by this number of seconds, if funds are available, upon automatic renewal.<br/> This SHALL NOT apply if the account is already deleted upon expiration.<br/> If this is not provided in an allowed range on account creation, the transaction SHALL fail with INVALID_AUTO_RENEWAL_PERIOD. The default values for the minimum period and maximum period are currently 30 days and 90 days, respectively.
int64 auto_renew_seconds = 26;- Specified by:
getAutoRenewSecondsin interfaceAccountOrBuilder- Returns:
- The autoRenewSeconds.
-
setAutoRenewSeconds
* A count of the number of seconds to extend this account's expiration. <p> The network SHALL extend the account's expiration by this number of seconds, if funds are available, upon automatic renewal.<br/> This SHALL NOT apply if the account is already deleted upon expiration.<br/> If this is not provided in an allowed range on account creation, the transaction SHALL fail with INVALID_AUTO_RENEWAL_PERIOD. The default values for the minimum period and maximum period are currently 30 days and 90 days, respectively.
int64 auto_renew_seconds = 26;- Parameters:
value- The autoRenewSeconds to set.- Returns:
- This builder for chaining.
-
clearAutoRenewSeconds
* A count of the number of seconds to extend this account's expiration. <p> The network SHALL extend the account's expiration by this number of seconds, if funds are available, upon automatic renewal.<br/> This SHALL NOT apply if the account is already deleted upon expiration.<br/> If this is not provided in an allowed range on account creation, the transaction SHALL fail with INVALID_AUTO_RENEWAL_PERIOD. The default values for the minimum period and maximum period are currently 30 days and 90 days, respectively.
int64 auto_renew_seconds = 26;- Returns:
- This builder for chaining.
-
getContractKvPairsNumber
public int getContractKvPairsNumber()* A count of smart contract key-value pairs.<br/> If this account is a smart-contract, this is the number of key-value pairs stored on the contract. <p> If this account is not a smart contract, this field SHALL NOT be used.<br/> This value SHALL determine a portion of the storage rental fees for the contract.
int32 contract_kv_pairs_number = 27;- Specified by:
getContractKvPairsNumberin interfaceAccountOrBuilder- Returns:
- The contractKvPairsNumber.
-
setContractKvPairsNumber
* A count of smart contract key-value pairs.<br/> If this account is a smart-contract, this is the number of key-value pairs stored on the contract. <p> If this account is not a smart contract, this field SHALL NOT be used.<br/> This value SHALL determine a portion of the storage rental fees for the contract.
int32 contract_kv_pairs_number = 27;- Parameters:
value- The contractKvPairsNumber to set.- Returns:
- This builder for chaining.
-
clearContractKvPairsNumber
* A count of smart contract key-value pairs.<br/> If this account is a smart-contract, this is the number of key-value pairs stored on the contract. <p> If this account is not a smart contract, this field SHALL NOT be used.<br/> This value SHALL determine a portion of the storage rental fees for the contract.
int32 contract_kv_pairs_number = 27;- Returns:
- This builder for chaining.
-
getCryptoAllowancesList
* A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28;- Specified by:
getCryptoAllowancesListin interfaceAccountOrBuilder
-
getCryptoAllowancesCount
public int getCryptoAllowancesCount()* A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28;- Specified by:
getCryptoAllowancesCountin interfaceAccountOrBuilder
-
getCryptoAllowances
* A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28;- Specified by:
getCryptoAllowancesin interfaceAccountOrBuilder
-
setCryptoAllowances
* A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28; -
setCryptoAllowances
public Account.Builder setCryptoAllowances(int index, AccountCryptoAllowance.Builder builderForValue) * A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28; -
addCryptoAllowances
* A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28; -
addCryptoAllowances
* A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28; -
addCryptoAllowances
* A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28; -
addCryptoAllowances
public Account.Builder addCryptoAllowances(int index, AccountCryptoAllowance.Builder builderForValue) * A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28; -
addAllCryptoAllowances
* A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28; -
clearCryptoAllowances
* A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28; -
removeCryptoAllowances
* A list of crypto (HBAR) allowances approved by this account. <p> If this is not empty, each allowance SHALL permit a specified "spender" account to spend this account's HBAR balance, up to a designated limit.<br/> This field SHALL permit spending only HBAR balance, not other tokens the account may hold. Allowances for other tokens SHALL be listed in the `token_allowances` field or the `approve_for_all_nft_allowances` field.
repeated .proto.AccountCryptoAllowance crypto_allowances = 28; -
getApproveForAllNftAllowancesList
* A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;- Specified by:
getApproveForAllNftAllowancesListin interfaceAccountOrBuilder
-
getApproveForAllNftAllowancesCount
public int getApproveForAllNftAllowancesCount()* A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;- Specified by:
getApproveForAllNftAllowancesCountin interfaceAccountOrBuilder
-
getApproveForAllNftAllowances
* A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;- Specified by:
getApproveForAllNftAllowancesin interfaceAccountOrBuilder
-
setApproveForAllNftAllowances
public Account.Builder setApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance value) * A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; -
setApproveForAllNftAllowances
public Account.Builder setApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance.Builder builderForValue) * A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; -
addApproveForAllNftAllowances
* A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; -
addApproveForAllNftAllowances
public Account.Builder addApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance value) * A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; -
addApproveForAllNftAllowances
public Account.Builder addApproveForAllNftAllowances(AccountApprovalForAllAllowance.Builder builderForValue) * A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; -
addApproveForAllNftAllowances
public Account.Builder addApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance.Builder builderForValue) * A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; -
addAllApproveForAllNftAllowances
public Account.Builder addAllApproveForAllNftAllowances(Iterable<? extends AccountApprovalForAllAllowance> values) * A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; -
clearApproveForAllNftAllowances
* A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; -
removeApproveForAllNftAllowances
* A list of non-fungible token (NFT) allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" account to transfer _all_ of this account's non-fungible tokens from a particular collection.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account.
repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; -
getTokenAllowancesList
* A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;- Specified by:
getTokenAllowancesListin interfaceAccountOrBuilder
-
getTokenAllowancesCount
public int getTokenAllowancesCount()* A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;- Specified by:
getTokenAllowancesCountin interfaceAccountOrBuilder
-
getTokenAllowances
* A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;- Specified by:
getTokenAllowancesin interfaceAccountOrBuilder
-
setTokenAllowances
* A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; -
setTokenAllowances
public Account.Builder setTokenAllowances(int index, AccountFungibleTokenAllowance.Builder builderForValue) * A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; -
addTokenAllowances
* A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; -
addTokenAllowances
* A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; -
addTokenAllowances
* A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; -
addTokenAllowances
public Account.Builder addTokenAllowances(int index, AccountFungibleTokenAllowance.Builder builderForValue) * A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; -
addAllTokenAllowances
public Account.Builder addAllTokenAllowances(Iterable<? extends AccountFungibleTokenAllowance> values) * A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; -
clearTokenAllowances
* A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; -
removeTokenAllowances
* A list of fungible token allowances approved by this account. <p> If this is not empty, each allowance permits a specified "spender" to spend this account's fungible tokens, of the designated type, up to a designated limit.
repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; -
getNumberTreasuryTitles
public int getNumberTreasuryTitles()* A count of tokens for which this account is the treasury account. <p> Each native token is initially created with all tokens held by its treasury, and the owner of that account (which may be a smart contract) determines how those tokens are distributed.
uint32 number_treasury_titles = 31;- Specified by:
getNumberTreasuryTitlesin interfaceAccountOrBuilder- Returns:
- The numberTreasuryTitles.
-
setNumberTreasuryTitles
* A count of tokens for which this account is the treasury account. <p> Each native token is initially created with all tokens held by its treasury, and the owner of that account (which may be a smart contract) determines how those tokens are distributed.
uint32 number_treasury_titles = 31;- Parameters:
value- The numberTreasuryTitles to set.- Returns:
- This builder for chaining.
-
clearNumberTreasuryTitles
* A count of tokens for which this account is the treasury account. <p> Each native token is initially created with all tokens held by its treasury, and the owner of that account (which may be a smart contract) determines how those tokens are distributed.
uint32 number_treasury_titles = 31;- Returns:
- This builder for chaining.
-
getExpiredAndPendingRemoval
public boolean getExpiredAndPendingRemoval()* A flag indicating that the account is expired and pending removal. <p> When the network checks for entity expiration, it SHALL set this flag if the account expiration time has past and the account has no HBAR sufficient to pay current renewal fees.<br/> If the account has an auto-renew account set with an HBAR balance that could pay for an auto-renewal, then this flag SHALL NOT be set. This ensures the account is not encumbered during the time between expiration and when the auto-renewal processing renews the account.
bool expired_and_pending_removal = 32;- Specified by:
getExpiredAndPendingRemovalin interfaceAccountOrBuilder- Returns:
- The expiredAndPendingRemoval.
-
setExpiredAndPendingRemoval
* A flag indicating that the account is expired and pending removal. <p> When the network checks for entity expiration, it SHALL set this flag if the account expiration time has past and the account has no HBAR sufficient to pay current renewal fees.<br/> If the account has an auto-renew account set with an HBAR balance that could pay for an auto-renewal, then this flag SHALL NOT be set. This ensures the account is not encumbered during the time between expiration and when the auto-renewal processing renews the account.
bool expired_and_pending_removal = 32;- Parameters:
value- The expiredAndPendingRemoval to set.- Returns:
- This builder for chaining.
-
clearExpiredAndPendingRemoval
* A flag indicating that the account is expired and pending removal. <p> When the network checks for entity expiration, it SHALL set this flag if the account expiration time has past and the account has no HBAR sufficient to pay current renewal fees.<br/> If the account has an auto-renew account set with an HBAR balance that could pay for an auto-renewal, then this flag SHALL NOT be set. This ensures the account is not encumbered during the time between expiration and when the auto-renewal processing renews the account.
bool expired_and_pending_removal = 32;- Returns:
- This builder for chaining.
-
getFirstContractStorageKey
public com.google.protobuf.ByteString getFirstContractStorageKey()* A contract storage key.<br/> This is the first key in the doubly-linked list of this contract's storage mappings. <p> This value SHALL be empty if the account is not a contract or the contract has no storage mappings.
bytes first_contract_storage_key = 33;- Specified by:
getFirstContractStorageKeyin interfaceAccountOrBuilder- Returns:
- The firstContractStorageKey.
-
setFirstContractStorageKey
* A contract storage key.<br/> This is the first key in the doubly-linked list of this contract's storage mappings. <p> This value SHALL be empty if the account is not a contract or the contract has no storage mappings.
bytes first_contract_storage_key = 33;- Parameters:
value- The firstContractStorageKey to set.- Returns:
- This builder for chaining.
-
clearFirstContractStorageKey
* A contract storage key.<br/> This is the first key in the doubly-linked list of this contract's storage mappings. <p> This value SHALL be empty if the account is not a contract or the contract has no storage mappings.
bytes first_contract_storage_key = 33;- Returns:
- This builder for chaining.
-
hasHeadPendingAirdropId
public boolean hasHeadPendingAirdropId()* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.
.proto.PendingAirdropId head_pending_airdrop_id = 34;- Specified by:
hasHeadPendingAirdropIdin interfaceAccountOrBuilder- Returns:
- Whether the headPendingAirdropId field is set.
-
getHeadPendingAirdropId
* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.
.proto.PendingAirdropId head_pending_airdrop_id = 34;- Specified by:
getHeadPendingAirdropIdin interfaceAccountOrBuilder- Returns:
- The headPendingAirdropId.
-
setHeadPendingAirdropId
* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.
.proto.PendingAirdropId head_pending_airdrop_id = 34; -
setHeadPendingAirdropId
* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.
.proto.PendingAirdropId head_pending_airdrop_id = 34; -
mergeHeadPendingAirdropId
* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.
.proto.PendingAirdropId head_pending_airdrop_id = 34; -
clearHeadPendingAirdropId
* A pending airdrop ID.<br/> This is the head of the linked list for this account from the account airdrops map.<br/> <p> The account airdrops SHALL be connected by including the "next" and "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/> This value SHALL NOT be empty if this account is "sender" for any pending airdrop, and SHALL be empty otherwise.
.proto.PendingAirdropId head_pending_airdrop_id = 34; -
getNumberPendingAirdrops
public long getNumberPendingAirdrops()* A number of pending airdrops. <p> This count SHALL be used to calculate rent _without_ walking the linked list of pending airdrops associated to this account via the `head_pending_airdrop_id` field.<br/> This value MUST be updated for every airdrop, clam, or cancel transaction that designates this account as a receiver.<br/> This number MUST always match the count of entries in the "list" identified by `head_pending_airdrop_id`.
uint64 number_pending_airdrops = 35;- Specified by:
getNumberPendingAirdropsin interfaceAccountOrBuilder- Returns:
- The numberPendingAirdrops.
-
setNumberPendingAirdrops
* A number of pending airdrops. <p> This count SHALL be used to calculate rent _without_ walking the linked list of pending airdrops associated to this account via the `head_pending_airdrop_id` field.<br/> This value MUST be updated for every airdrop, clam, or cancel transaction that designates this account as a receiver.<br/> This number MUST always match the count of entries in the "list" identified by `head_pending_airdrop_id`.
uint64 number_pending_airdrops = 35;- Parameters:
value- The numberPendingAirdrops to set.- Returns:
- This builder for chaining.
-
clearNumberPendingAirdrops
* A number of pending airdrops. <p> This count SHALL be used to calculate rent _without_ walking the linked list of pending airdrops associated to this account via the `head_pending_airdrop_id` field.<br/> This value MUST be updated for every airdrop, clam, or cancel transaction that designates this account as a receiver.<br/> This number MUST always match the count of entries in the "list" identified by `head_pending_airdrop_id`.
uint64 number_pending_airdrops = 35;- Returns:
- This builder for chaining.
-
getNumberHooksInUse
public long getNumberHooksInUse()* The number of hooks currently in use on this account.
uint64 number_hooks_in_use = 36;- Specified by:
getNumberHooksInUsein interfaceAccountOrBuilder- Returns:
- The numberHooksInUse.
-
setNumberHooksInUse
* The number of hooks currently in use on this account.
uint64 number_hooks_in_use = 36;- Parameters:
value- The numberHooksInUse to set.- Returns:
- This builder for chaining.
-
clearNumberHooksInUse
* The number of hooks currently in use on this account.
uint64 number_hooks_in_use = 36;- Returns:
- This builder for chaining.
-
getFirstHookId
public long getFirstHookId()* If the account has more than zero hooks in use, the id of the first hook in its doubly-linked list of hooks.
int64 first_hook_id = 37;- Specified by:
getFirstHookIdin interfaceAccountOrBuilder- Returns:
- The firstHookId.
-
setFirstHookId
* If the account has more than zero hooks in use, the id of the first hook in its doubly-linked list of hooks.
int64 first_hook_id = 37;- Parameters:
value- The firstHookId to set.- Returns:
- This builder for chaining.
-
clearFirstHookId
* If the account has more than zero hooks in use, the id of the first hook in its doubly-linked list of hooks.
int64 first_hook_id = 37;- Returns:
- This builder for chaining.
-
getNumberEvmHookStorageSlots
public long getNumberEvmHookStorageSlots()* The number of storage slots in use by this account's EVM hooks.
uint64 number_evm_hook_storage_slots = 38;- Specified by:
getNumberEvmHookStorageSlotsin interfaceAccountOrBuilder- Returns:
- The numberEvmHookStorageSlots.
-
setNumberEvmHookStorageSlots
* The number of storage slots in use by this account's EVM hooks.
uint64 number_evm_hook_storage_slots = 38;- Parameters:
value- The numberEvmHookStorageSlots to set.- Returns:
- This builder for chaining.
-
clearNumberEvmHookStorageSlots
* The number of storage slots in use by this account's EVM hooks.
uint64 number_evm_hook_storage_slots = 38;- Returns:
- This builder for chaining.
-
getDelegationAddress
public com.google.protobuf.ByteString getDelegationAddress()* The delegated contract address set for this account. <p> 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 = 39;- Specified by:
getDelegationAddressin interfaceAccountOrBuilder- Returns:
- The delegationAddress.
-
setDelegationAddress
* The delegated contract address set for this account. <p> 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 = 39;- Parameters:
value- The delegationAddress to set.- Returns:
- This builder for chaining.
-
clearDelegationAddress
* The delegated contract address set for this account. <p> 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 = 39;- Returns:
- This builder for chaining.
-