Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface CryptoGetAccountBalanceResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
CryptoGetAccountBalanceResponse,CryptoGetAccountBalanceResponse.Builder
@Generated
public interface CryptoGetAccountBalanceResponseOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescription* An account identifier.<br/> This is the account ID queried.long* A current account balance.<br/> This is the current HBAR balance denominated in tinybar (10<sup>-8</sup> HBAR).* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).getTokenBalances(int index) Deprecated.intDeprecated.Deprecated.boolean* An account identifier.<br/> This is the account ID queried.boolean* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasHeader
boolean hasHeader()* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1;- Returns:
- Whether the header field is set.
-
getHeader
ResponseHeader getHeader()* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1;- Returns:
- The header.
-
hasAccountID
boolean hasAccountID()* An account identifier.<br/> This is the account ID queried. <br/> The inclusion of the account queried is useful with state proofs, when needed to prove an account balance to a third party.
.proto.AccountID accountID = 2;- Returns:
- Whether the accountID field is set.
-
getAccountID
AccountID getAccountID()* An account identifier.<br/> This is the account ID queried. <br/> The inclusion of the account queried is useful with state proofs, when needed to prove an account balance to a third party.
.proto.AccountID accountID = 2;- Returns:
- The accountID.
-
getBalance
long getBalance()* A current account balance.<br/> This is the current HBAR balance denominated in tinybar (10<sup>-8</sup> HBAR).
uint64 balance = 3;- Returns:
- The balance.
-
getTokenBalancesList
Deprecated.* This field became infeasible to support after HIP-367 removed limits on the number of associated tokens.<br/> A list of token balances for all tokens associated to the account. <p> This field was deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed an account to be associated to an unlimited number of tokens. This scale makes it more efficient for users to consult mirror nodes to review their token balances.
repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true]; -
getTokenBalances
Deprecated.* This field became infeasible to support after HIP-367 removed limits on the number of associated tokens.<br/> A list of token balances for all tokens associated to the account. <p> This field was deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed an account to be associated to an unlimited number of tokens. This scale makes it more efficient for users to consult mirror nodes to review their token balances.
repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true]; -
getTokenBalancesCount
Deprecated.* This field became infeasible to support after HIP-367 removed limits on the number of associated tokens.<br/> A list of token balances for all tokens associated to the account. <p> This field was deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed an account to be associated to an unlimited number of tokens. This scale makes it more efficient for users to consult mirror nodes to review their token balances.
repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
-