Show / Hide Table of Contents

Class ContractInfo

The information returned from the GetContractInfoAsync ConsensusClient method call.
It represents the details concerning a Hedera Network Contract instance, including the public key value to use in smart contract interaction.

Inheritance
object
ContractInfo
Implements
IEquatable<ContractInfo>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record ContractInfo : IEquatable<ContractInfo>

Properties

| Edit this page View Source

Account

The ID of the Crypto Currency Address paired with this contract instance.

Declaration
public EntityId Account { get; }
Property Value
Type Description
EntityId
| Edit this page View Source

Administrator

An optional endorsement that can be used to modify the contract details.
If null, the contract is immutable.

Declaration
public Endorsement? Administrator { get; }
Property Value
Type Description
Endorsement
| Edit this page View Source

AutoAssociationLimit

The maximum number of token or NFTs that this contract may be implicitly associated with (by means of being made a treasury or other related actions).

Declaration
public int AutoAssociationLimit { get; }
Property Value
Type Description
int
| Edit this page View Source

Balance

Contract's Address's Crypto Balance in Tinybars

Declaration
public ulong Balance { get; }
Property Value
Type Description
ulong
| Edit this page View Source

Contract

ID of the contract instance.

Declaration
public EntityId Contract { get; }
Property Value
Type Description
EntityId
| Edit this page View Source

Deleted

True

if this contract has been deleted.

Declaration
public bool Deleted { get; }
Property Value
Type Description
bool
| Edit this page View Source

EvmAddress

The identity of both the contract ID and the associated crypto currency Hedera Address in a form to be used with smart contracts.

Declaration
public EvmAddress EvmAddress { get; }
Property Value
Type Description
EvmAddress
| Edit this page View Source

Expiration

The consensus time at which this instance of the contract (and associated account) is set to expire.

Declaration
public ConsensusTimeStamp Expiration { get; }
Property Value
Type Description
ConsensusTimeStamp
| Edit this page View Source

Ledger

Identification of the Ledger (Network) this contract information was retrieved from.

Declaration
public BigInteger Ledger { get; }
Property Value
Type Description
BigInteger
| Edit this page View Source

Memo

The memo associated with the contract instance.

Declaration
public string Memo { get; }
Property Value
Type Description
string
| Edit this page View Source

RenewAccount

Optional address of the account supporting the auto renewal of the contract at expiration time. The contract lifetime will be extended by the RenewPeriod at expiration time if this account contains sufficient funds. The private key associated with this account must sign the transaction if RenewAccount is specified.

Declaration
public EntityId? RenewAccount { get; }
Property Value
Type Description
EntityId
| Edit this page View Source

RenewPeriod

Incremental period for auto-renewal of the contract and account. If account does not have sufficient funds to renew at the expiration time, it will be renewed for a period of time the remaining funds can support. If no funds remain, the contract instance and associated account will be deleted.

Declaration
public TimeSpan RenewPeriod { get; }
Property Value
Type Description
TimeSpan
| Edit this page View Source

Size

The number of bytes required to store this contract instance. This value impacts the cost of extending the expiration time.

Declaration
public long Size { get; }
Property Value
Type Description
long
| Edit this page View Source

StakingInfo

Staking metadata information for the contract.

Declaration
public StakingInfo StakingInfo { get; }
Property Value
Type Description
StakingInfo
| Edit this page View Source

Tokens

[DEPRECATED] Balances of tokens associated with this account.

Declaration
[Obsolete("This field is deprecated by HIP-367")]
public IReadOnlyList<TokenBalance> Tokens { get; }
Property Value
Type Description
IReadOnlyList<TokenBalance>

Implements

IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph