Show / Hide Table of Contents

Class ContractData

Contract information retrieved from a mirror node.

Inheritance
object
ContractData
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public class ContractData

Properties

| Edit this page View Source

Associations

The number of auto-associations for this contract.

Declaration
[JsonPropertyName("max_automatic_token_associations")]
[JsonConverter(typeof(IntMirrorConverter))]
public int Associations { get; set; }
Property Value
Type Description
int
| Edit this page View Source

AutoRenewAccount

The ID of the associated auto renew account

Declaration
[JsonPropertyName("auto_renew_account")]
public EntityId? AutoRenewAccount { get; set; }
Property Value
Type Description
EntityId
| Edit this page View Source

AutoRenewPeriod

Contract Auto-Renew Period in seconds.

Declaration
[JsonPropertyName("auto_renew_period")]
[JsonConverter(typeof(LongMirrorConverter))]
public long AutoRenewPeriod { get; set; }
Property Value
Type Description
long
| Edit this page View Source

Bytecode

The contract bytecode in hex during deployment

Declaration
[JsonPropertyName("bytecode")]
[JsonConverter(typeof(HexStringToBytesConverter))]
public ReadOnlyMemory<byte> Bytecode { get; set; }
Property Value
Type Description
ReadOnlyMemory<byte>
| Edit this page View Source

Created

Consensus Timestamp when this contract was created

Declaration
[JsonPropertyName("created_timestamp")]
public ConsensusTimeStamp Created { get; set; }
Property Value
Type Description
ConsensusTimeStamp
| Edit this page View Source

Deleted

Flag indicating that the contract has been deleted.

Declaration
[JsonPropertyName("deleted")]
[JsonConverter(typeof(BooleanMirrorConverter))]
public bool Deleted { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Endorsement

The public key which controls access.

Declaration
[JsonPropertyName("admin_key")]
public Endorsement? Endorsement { get; set; }
Property Value
Type Description
Endorsement
| Edit this page View Source

EvmAddress

The contract's public address encoded for use with the contract EVM.

Declaration
[JsonPropertyName("evm_address")]
public EvmAddress EvmAddress { get; set; }
Property Value
Type Description
EvmAddress
| Edit this page View Source

Expiration

Timestamp at which the network will try to renew the contract rent or delete the contract if there are no funds to extend its lifetime.

Declaration
[JsonPropertyName("expiration_timestamp")]
public ConsensusTimeStamp Expiration { get; set; }
Property Value
Type Description
ConsensusTimeStamp
| Edit this page View Source

File

The HAPI ID of the file that created the contract.

Declaration
[JsonPropertyName("file_id")]
public EntityId File { get; set; }
Property Value
Type Description
EntityId
| Edit this page View Source

HapiAddress

The HAPI ID of the Contract

Declaration
[JsonPropertyName("contract_id")]
public EntityId HapiAddress { get; set; }
Property Value
Type Description
EntityId
| Edit this page View Source

Memo

The contract's memo.

Declaration
[JsonPropertyName("memo")]
public string Memo { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Obtainer

The HAPI ID of the obtainer?

Declaration
[JsonPropertyName("obtainer_id")]
public EntityId Obtainer { get; set; }
Property Value
Type Description
EntityId
| Edit this page View Source

PermanentRemoval

Flag indicating permanent removal?

Declaration
[JsonPropertyName("permanent_removal")]
[JsonConverter(typeof(BooleanMirrorConverter))]
public bool PermanentRemoval { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

ProxyAccount

The ID of the proxy account

Declaration
[JsonPropertyName("proxy_account_id")]
public EntityId? ProxyAccount { get; set; }
Property Value
Type Description
EntityId
| Edit this page View Source

RuntimeBytecode

The contract bytecode in hex after deployment

Declaration
[JsonPropertyName("runtime_bytecode")]
[JsonConverter(typeof(HexStringToBytesConverter))]
public ReadOnlyMemory<byte> RuntimeBytecode { get; set; }
Property Value
Type Description
ReadOnlyMemory<byte>
| Edit this page View Source

TimestampRange

The consensus timestamp range this data record covers.

Declaration
[JsonPropertyName("timestamp")]
public TimestampRangeData TimestampRange { get; set; }
Property Value
Type Description
TimestampRangeData
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph