Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface CryptoGetInfoResponse.AccountInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
CryptoGetInfoResponse.AccountInfo,CryptoGetInfoResponse.AccountInfo.Builder
- Enclosing class:
CryptoGetInfoResponse
public static interface CryptoGetInfoResponse.AccountInfoOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescription* a unique identifier for this account.com.google.protobuf.ByteStringgetAlias()* An account alias.<br/> This is a value used in some contexts to reference an account when the tripartite account identifier is not available.* A duration to extend this account's expiration.long* The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR).* A Solidity ID.com.google.protobuf.ByteString* A Solidity ID.com.google.protobuf.ByteString* The delegated contract address set for this account.boolean* A boolean indicating that this account is deleted.long* The ethereum transaction nonce associated with this account.* The current expiration time for this account.longDeprecated.proto.CryptoGetInfoResponse.AccountInfo.generateReceiveRecordThreshold is deprecated.longDeprecated.proto.CryptoGetInfoResponse.AccountInfo.generateSendRecordThreshold is deprecated.getKey()* The key to be used to sign transactions from this account, if any.com.google.protobuf.ByteString* The ledger ID of the network that generated this response.getLiveHashes(int index) * All of the livehashes attached to the account (each of which is a hash along with the keys that authorized it and can delete it)int* All of the livehashes attached to the account (each of which is a hash along with the keys that authorized it and can delete it)* All of the livehashes attached to the account (each of which is a hash along with the keys that authorized it and can delete it)int* The maximum number of tokens that can be auto-associated with the account.getMemo()* A short description of this account.com.google.protobuf.ByteString* A short description of this account.long* The total number of non-fungible/unique tokens owned by this account.Deprecated.proto.CryptoGetInfoResponse.AccountInfo.proxyAccountID is deprecated.longDeprecated.proto.CryptoGetInfoResponse.AccountInfo.proxyReceived is deprecated.boolean* A boolean indicating that the account requires a receiver signature for inbound token transfer transactions.* Staking information for this account.getTokenRelationships(int index) Deprecated.intDeprecated.Deprecated.boolean* a unique identifier for this account.boolean* A duration to extend this account's expiration.boolean* The current expiration time for this account.booleanhasKey()* The key to be used to sign transactions from this account, if any.booleanDeprecated.proto.CryptoGetInfoResponse.AccountInfo.proxyAccountID is deprecated.boolean* Staking information for this account.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasAccountID
boolean hasAccountID()* a unique identifier for this account. <p> An account identifier, when assigned to this field, SHALL be of the form `shard.realm.number`.
.proto.AccountID accountID = 1;- Returns:
- Whether the accountID field is set.
-
getAccountID
AccountID getAccountID()* a unique identifier for this account. <p> An account identifier, when assigned to this field, SHALL be of the form `shard.realm.number`.
.proto.AccountID accountID = 1;- Returns:
- The accountID.
-
getContractAccountID
String getContractAccountID()* A Solidity ID. <p> This SHALL be populated if this account is a smart contract, and SHALL NOT be populated otherwise.<br/> This SHALL be formatted as a string according to Solidity ID standards.
string contractAccountID = 2;- Returns:
- The contractAccountID.
-
getContractAccountIDBytes
com.google.protobuf.ByteString getContractAccountIDBytes()* A Solidity ID. <p> This SHALL be populated if this account is a smart contract, and SHALL NOT be populated otherwise.<br/> This SHALL be formatted as a string according to Solidity ID standards.
string contractAccountID = 2;- Returns:
- The bytes for contractAccountID.
-
getDeleted
boolean getDeleted()* A boolean indicating that this account is deleted. <p> Any transaction involving a deleted account SHALL fail.
bool deleted = 3;- Returns:
- The deleted.
-
hasProxyAccountID
Deprecated.proto.CryptoGetInfoResponse.AccountInfo.proxyAccountID is deprecated. See crypto_get_info.proto;l=124* Replaced by StakingInfo.<br/> ID of the account to which this account is staking its balances. 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 proxyAccountID = 4 [deprecated = true];- Returns:
- Whether the proxyAccountID field is set.
-
getProxyAccountID
Deprecated.proto.CryptoGetInfoResponse.AccountInfo.proxyAccountID is deprecated. See crypto_get_info.proto;l=124* Replaced by StakingInfo.<br/> ID of the account to which this account is staking its balances. 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 proxyAccountID = 4 [deprecated = true];- Returns:
- The proxyAccountID.
-
getProxyReceived
Deprecated.proto.CryptoGetInfoResponse.AccountInfo.proxyReceived is deprecated. See crypto_get_info.proto;l=130* Replaced by StakingInfo.<br/> The total amount of tinybar proxy staked to this account.
int64 proxyReceived = 6 [deprecated = true];- Returns:
- The proxyReceived.
-
hasKey
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 = 7;- Returns:
- Whether the key field is set.
-
getKey
Key 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 = 7;- Returns:
- The key.
-
getBalance
long getBalance()* The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR). <p> This value SHALL always be a whole number.
uint64 balance = 8;- Returns:
- The balance.
-
getGenerateSendRecordThreshold
Deprecated.proto.CryptoGetInfoResponse.AccountInfo.generateSendRecordThreshold is deprecated. See crypto_get_info.proto;l=155* Obsolete and unused.<br/> The threshold amount, in tinybars, at which a record was created for any transaction that decreased the balance of this account.
uint64 generateSendRecordThreshold = 9 [deprecated = true];- Returns:
- The generateSendRecordThreshold.
-
getGenerateReceiveRecordThreshold
Deprecated.proto.CryptoGetInfoResponse.AccountInfo.generateReceiveRecordThreshold is deprecated. See crypto_get_info.proto;l=162* Obsolete and unused.<br/> The threshold amount, in tinybars, at which a record was created for any transaction that increased the balance of this account.
uint64 generateReceiveRecordThreshold = 10 [deprecated = true];- Returns:
- The generateReceiveRecordThreshold.
-
getReceiverSigRequired
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 receiverSigRequired = 11;- Returns:
- The receiverSigRequired.
-
hasExpirationTime
boolean hasExpirationTime()* The current expiration time for this account. <p> 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.
.proto.Timestamp expirationTime = 12;- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
Timestamp getExpirationTime()* The current expiration time for this account. <p> 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.
.proto.Timestamp expirationTime = 12;- Returns:
- The expirationTime.
-
hasAutoRenewPeriod
boolean hasAutoRenewPeriod()* A duration to extend this account's expiration. <p> The network SHALL extend the account's expiration by this duration, 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.
.proto.Duration autoRenewPeriod = 13;- Returns:
- Whether the autoRenewPeriod field is set.
-
getAutoRenewPeriod
Duration getAutoRenewPeriod()* A duration to extend this account's expiration. <p> The network SHALL extend the account's expiration by this duration, 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.
.proto.Duration autoRenewPeriod = 13;- Returns:
- The autoRenewPeriod.
-
getLiveHashesList
* All of the livehashes attached to the account (each of which is a hash along with the keys that authorized it and can delete it)
repeated .proto.LiveHash liveHashes = 14; -
getLiveHashes
* All of the livehashes attached to the account (each of which is a hash along with the keys that authorized it and can delete it)
repeated .proto.LiveHash liveHashes = 14; -
getLiveHashesCount
int getLiveHashesCount()* All of the livehashes attached to the account (each of which is a hash along with the keys that authorized it and can delete it)
repeated .proto.LiveHash liveHashes = 14; -
getTokenRelationshipsList
Deprecated.* As of `HIP-367`, which enabled unlimited token associations, the potential scale for this value requires that users consult a mirror node for this information.
repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true]; -
getTokenRelationships
Deprecated.* As of `HIP-367`, which enabled unlimited token associations, the potential scale for this value requires that users consult a mirror node for this information.
repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true]; -
getTokenRelationshipsCount
Deprecated.* As of `HIP-367`, which enabled unlimited token associations, the potential scale for this value requires that users consult a mirror node for this information.
repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true]; -
getMemo
String 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 = 16;- Returns:
- The memo.
-
getMemoBytes
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 = 16;- Returns:
- The bytes for memo.
-
getOwnedNfts
long getOwnedNfts()* The total number of non-fungible/unique tokens owned by this account.
int64 ownedNfts = 17;- Returns:
- The ownedNfts.
-
getMaxAutomaticTokenAssociations
int getMaxAutomaticTokenAssociations()* The maximum number of tokens that can be auto-associated with the 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/> Following HIP-904 This value may also be `-1` to indicate no limit.<br/> This value MUST NOT be less than `-1`.
int32 max_automatic_token_associations = 18;- Returns:
- The maxAutomaticTokenAssociations.
-
getAlias
com.google.protobuf.ByteString getAlias()* An account alias.<br/> This is a value used in some contexts to reference an account when the tripartite account identifier is not available. <p> This field, when set to a non-default value, is immutable and SHALL NOT be changed.
bytes alias = 19;- Returns:
- The alias.
-
getLedgerId
com.google.protobuf.ByteString getLedgerId()* The ledger ID of the network that generated this response. <p> This value SHALL identify the distributed ledger that responded to this query.
bytes ledger_id = 20;- Returns:
- The ledgerId.
-
getEthereumNonce
long getEthereumNonce()* The ethereum transaction nonce associated with this account.
int64 ethereum_nonce = 21;- Returns:
- The ethereumNonce.
-
hasStakingInfo
boolean hasStakingInfo()* Staking information for this account.
.proto.StakingInfo staking_info = 22;- Returns:
- Whether the stakingInfo field is set.
-
getStakingInfo
StakingInfo getStakingInfo()* Staking information for this account.
.proto.StakingInfo staking_info = 22;- Returns:
- The stakingInfo.
-
getDelegationAddress
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 = 23;- Returns:
- The delegationAddress.
-