Class ContractData
Contract information retrieved from a mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public class ContractData
Properties
| Edit this page View SourceAssociations
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 |
AutoRenewAccount
The ID of the associated auto renew account
Declaration
[JsonPropertyName("auto_renew_account")]
public EntityId? AutoRenewAccount { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
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 |
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> |
Created
Consensus Timestamp when this contract was created
Declaration
[JsonPropertyName("created_timestamp")]
public ConsensusTimeStamp Created { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsensusTimeStamp |
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 |
Endorsement
The public key which controls access.
Declaration
[JsonPropertyName("admin_key")]
public Endorsement? Endorsement { get; set; }
Property Value
| Type | Description |
|---|---|
| Endorsement |
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 |
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 |
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 |
HapiAddress
The HAPI ID of the Contract
Declaration
[JsonPropertyName("contract_id")]
public EntityId HapiAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Memo
The contract's memo.
Declaration
[JsonPropertyName("memo")]
public string Memo { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Obtainer
The HAPI ID of the obtainer?
Declaration
[JsonPropertyName("obtainer_id")]
public EntityId Obtainer { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
PermanentRemoval
Flag indicating permanent removal?
Declaration
[JsonPropertyName("permanent_removal")]
[JsonConverter(typeof(BooleanMirrorConverter))]
public bool PermanentRemoval { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ProxyAccount
The ID of the proxy account
Declaration
[JsonPropertyName("proxy_account_id")]
public EntityId? ProxyAccount { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
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> |
TimestampRange
The consensus timestamp range this data record covers.
Declaration
[JsonPropertyName("timestamp")]
public TimestampRangeData TimestampRange { get; set; }
Property Value
| Type | Description |
|---|---|
| TimestampRangeData |