Class ContractInfo

Response when the client sends the node CryptoGetInfoQuery.

Hierarchy

  • ContractInfo

Properties

accountId: AccountId

ID of the cryptocurrency account owned by the contract instance, in the format used in transactions.

adminKey: null | Key

The state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.

autoRenewAccountId: null | AccountId

ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar balance, the contract's own hbar balance will be used to cover auto-renewal fees.

autoRenewPeriod: default

The expiration time will extend every this many seconds. If there are insufficient funds, then it extends as long as possible. If the account is empty when it expires, then it is deleted.

balance: Hbar

The current balance of the contract.

contractAccountId: string

ID of both the contract instance and the cryptocurrency account owned by the contract instance, in the format used by Solidity.

contractId: ContractId

ID of the contract instance, in the format used in transactions.

contractMemo: string

The memo associated with the contract (max 100 bytes).

expirationTime: Timestamp

The current time at which this contract instance (and its account) is set to expire.

isDeleted: boolean

Whether the contract has been deleted

ledgerId: null | LedgerId

The ledger ID the response was returned from; please see HIP-198 for the network-specific IDs.

stakingInfo: null | default

Staking metadata for this account.

storage: Long

Number of bytes of storage being used by this instance (which affects the cost to extend the expiration time).

tokenRelationships: default

The tokens associated to the contract

Methods

Generated using TypeDoc