Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface ContractGetInfoResponse.ContractInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
ContractGetInfoResponse.ContractInfo,ContractGetInfoResponse.ContractInfo.Builder
- Enclosing class:
ContractGetInfoResponse
public static interface ContractGetInfoResponse.ContractInfoOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescription* The Account ID for the account entry associated with this smart contract.* The key that MUST sign any transaction to update or modify this smart contract.* An account designated to pay the renewal fee upon automatic renewal of this contract.* The duration, in seconds, for which the contract lifetime will be automatically extended upon expiration, provide sufficient HBAR is available at that time to pay the renewal fee.<br/> See `auto_renew_account_id` for additional conditions.long* The current HBAR balance, in tinybar, of the smart contract account.* The "Solidity" form contract ID.<br/> This is a hexadecimal string form of the 20-byte EVM address of the contract.com.google.protobuf.ByteString* The "Solidity" form contract ID.<br/> This is a hexadecimal string form of the 20-byte EVM address of the contract.* The ID of the smart contract requested in the query.boolean* A flag indicating that this contract is deleted.* The point in time at which this contract will expire.com.google.protobuf.ByteString* The ledger ID of the network that generated this response.int* The maximum number of tokens that the contract can be associated to automatically.getMemo()* A short description of this smart contract.com.google.protobuf.ByteString* A short description of this smart contract.* Staking information for this contract.long* The amount of storage used by this smart contract.getTokenRelationships(int index) Deprecated.intDeprecated.Deprecated.boolean* The Account ID for the account entry associated with this smart contract.boolean* The key that MUST sign any transaction to update or modify this smart contract.boolean* An account designated to pay the renewal fee upon automatic renewal of this contract.boolean* The duration, in seconds, for which the contract lifetime will be automatically extended upon expiration, provide sufficient HBAR is available at that time to pay the renewal fee.<br/> See `auto_renew_account_id` for additional conditions.boolean* The ID of the smart contract requested in the query.boolean* The point in time at which this contract will expire.boolean* Staking information for this contract.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasContractID
boolean hasContractID()* The ID of the smart contract requested in the query.
.proto.ContractID contractID = 1;- Returns:
- Whether the contractID field is set.
-
getContractID
ContractID getContractID()* The ID of the smart contract requested in the query.
.proto.ContractID contractID = 1;- Returns:
- The contractID.
-
hasAccountID
boolean hasAccountID()* The Account ID for the account entry associated with this smart contract.
.proto.AccountID accountID = 2;- Returns:
- Whether the accountID field is set.
-
getAccountID
AccountID getAccountID()* The Account ID for the account entry associated with this smart contract.
.proto.AccountID accountID = 2;- Returns:
- The accountID.
-
getContractAccountID
String getContractAccountID()* The "Solidity" form contract ID.<br/> This is a hexadecimal string form of the 20-byte EVM address of the contract.
string contractAccountID = 3;- Returns:
- The contractAccountID.
-
getContractAccountIDBytes
com.google.protobuf.ByteString getContractAccountIDBytes()* The "Solidity" form contract ID.<br/> This is a hexadecimal string form of the 20-byte EVM address of the contract.
string contractAccountID = 3;- Returns:
- The bytes for contractAccountID.
-
hasAdminKey
boolean hasAdminKey()* The key that MUST sign any transaction to update or modify this smart contract. <p> If this value is null, or is an empty `KeyList` then the contract CANNOT be deleted, modified, or updated, but MAY still expire.
.proto.Key adminKey = 4;- Returns:
- Whether the adminKey field is set.
-
getAdminKey
Key getAdminKey()* The key that MUST sign any transaction to update or modify this smart contract. <p> If this value is null, or is an empty `KeyList` then the contract CANNOT be deleted, modified, or updated, but MAY still expire.
.proto.Key adminKey = 4;- Returns:
- The adminKey.
-
hasExpirationTime
boolean hasExpirationTime()* The point in time at which this contract will expire.
.proto.Timestamp expirationTime = 5;- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
Timestamp getExpirationTime()* The point in time at which this contract will expire.
.proto.Timestamp expirationTime = 5;- Returns:
- The expirationTime.
-
hasAutoRenewPeriod
boolean hasAutoRenewPeriod()* The duration, in seconds, for which the contract lifetime will be automatically extended upon expiration, provide sufficient HBAR is available at that time to pay the renewal fee.<br/> See `auto_renew_account_id` for additional conditions.
.proto.Duration autoRenewPeriod = 6;- Returns:
- Whether the autoRenewPeriod field is set.
-
getAutoRenewPeriod
Duration getAutoRenewPeriod()* The duration, in seconds, for which the contract lifetime will be automatically extended upon expiration, provide sufficient HBAR is available at that time to pay the renewal fee.<br/> See `auto_renew_account_id` for additional conditions.
.proto.Duration autoRenewPeriod = 6;- Returns:
- The autoRenewPeriod.
-
getStorage
long getStorage()* The amount of storage used by this smart contract.
int64 storage = 7;- Returns:
- The storage.
-
getMemo
String getMemo()* A short description of this smart contract. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 8;- Returns:
- The memo.
-
getMemoBytes
com.google.protobuf.ByteString getMemoBytes()* A short description of this smart contract. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 8;- Returns:
- The bytes for memo.
-
getBalance
long getBalance()* The current HBAR balance, in tinybar, of the smart contract account.
uint64 balance = 9;- Returns:
- The balance.
-
getDeleted
boolean getDeleted()* A flag indicating that this contract is deleted.
bool deleted = 10;- Returns:
- The deleted.
-
getTokenRelationshipsList
Deprecated.* Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allows an account to be associated to an unlimited number of tokens, it became necessary to only provide this information from a Mirror Node.<br/> The list of tokens associated to this contract.
repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; -
getTokenRelationships
Deprecated.* Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allows an account to be associated to an unlimited number of tokens, it became necessary to only provide this information from a Mirror Node.<br/> The list of tokens associated to this contract.
repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; -
getTokenRelationshipsCount
Deprecated.* Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allows an account to be associated to an unlimited number of tokens, it became necessary to only provide this information from a Mirror Node.<br/> The list of tokens associated to this contract.
repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; -
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 = 12;- Returns:
- The ledgerId.
-
hasAutoRenewAccountId
boolean hasAutoRenewAccountId()* An account designated to pay the renewal fee upon automatic renewal of this contract. <p> If this is not set, or is set to an account with zero HBAR available, the HBAR balance of the contract, if available, SHALL be used to pay the renewal fee.
.proto.AccountID auto_renew_account_id = 13;- Returns:
- Whether the autoRenewAccountId field is set.
-
getAutoRenewAccountId
AccountID getAutoRenewAccountId()* An account designated to pay the renewal fee upon automatic renewal of this contract. <p> If this is not set, or is set to an account with zero HBAR available, the HBAR balance of the contract, if available, SHALL be used to pay the renewal fee.
.proto.AccountID auto_renew_account_id = 13;- Returns:
- The autoRenewAccountId.
-
getMaxAutomaticTokenAssociations
int getMaxAutomaticTokenAssociations()* The maximum number of tokens that the contract can be associated to automatically.
int32 max_automatic_token_associations = 14;- Returns:
- The maxAutomaticTokenAssociations.
-
hasStakingInfo
boolean hasStakingInfo()* Staking information for this contract.
.proto.StakingInfo staking_info = 15;- Returns:
- Whether the stakingInfo field is set.
-
getStakingInfo
StakingInfo getStakingInfo()* Staking information for this contract.
.proto.StakingInfo staking_info = 15;- Returns:
- The stakingInfo.
-