Show / Hide Table of Contents

Class ContractResultData

Represents the results from an EVM contract call.

Inheritance
object
ContractResultData
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 ContractResultData

Properties

| Edit this page View Source

BlockGasUsed

The amount of gas that was debted (charged)

Declaration
[JsonPropertyName("block_gas_used")]
[JsonConverter(typeof(UnsignedLongMirrorConverter))]
public ulong BlockGasUsed { get; set; }
Property Value
Type Description
ulong
| Edit this page View Source

BlockHash

The Hash of the block the transaction is included in.

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

BlockNumber

The number of the block the transaction was in.

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

Bloom

Bloom filter for record

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

ChainId

Chain ID

Declaration
[JsonPropertyName("chain_id")]
[JsonConverter(typeof(BigIntegerConverter))]
public BigInteger ChainId { get; set; }
Property Value
Type Description
BigInteger
| Edit this page View Source

Consensus

The transaction’s consensus timestamp.

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

Contract

ID of the contract that was called.

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

ContractAddress

The EVM address of the contract that was called

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

CreatedContracts

IDs of any contracts that were created as a side effect of this contract call.

Declaration
[JsonPropertyName("created_contract_ids")]
[JsonConverter(typeof(EntityIdArrayConverter))]
public EntityId[] CreatedContracts { get; set; }
Property Value
Type Description
EntityId[]
| Edit this page View Source

ErrorMessage

Error Message if one exists, can be a revert encoded hex value or actually just a string depending on how the error was raised from the contract.

Declaration
[JsonPropertyName("error_message")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ErrorMessage { get; set; }
Property Value
Type Description
string
| Edit this page View Source

GasConsumed

The units of consumed gas by the EVM to execute contract, which may be less than the amount of gas used.

Declaration
[JsonPropertyName("gas_consumed")]
[JsonConverter(typeof(UnsignedLongMirrorConverter))]
public ulong GasConsumed { get; set; }
Property Value
Type Description
ulong
| Edit this page View Source

GasLimit

The maximum units of gas allowed for contract execution.

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

GasPrice

Gas price (not sure of denomination)

Declaration
[JsonPropertyName("gas_price")]
[JsonConverter(typeof(BigIntegerConverter))]
public BigInteger GasPrice { get; set; }
Property Value
Type Description
BigInteger
| Edit this page View Source

GasUsed

The units of gas charged by the network to execute contract, may be more than the minimum amount consumed by the EVM itself.

Declaration
[JsonPropertyName("gas_used")]
[JsonConverter(typeof(UnsignedLongMirrorConverter))]
public ulong GasUsed { get; set; }
Property Value
Type Description
ulong
| Edit this page View Source

Hash

The Hash of the TransactionId

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

Input

The input function parameters for the call

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

Logs

List of logs.

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

MessageReceiver

The Contract TransactionId's TO parameter (should be same as Contract)

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

MessageSender

The Address or contract that is msg.sender for this contract call.

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

Nonce

The nonce of the wrapped ethereum transaction

Declaration
[JsonPropertyName("nonce")]
[JsonConverter(typeof(UnsignedLongMirrorConverter))]
public ulong Nonce { get; set; }
Property Value
Type Description
ulong
| Edit this page View Source

PayableAmount

Number of tinybars sent into this contract transaction call (the function must be payable if this is nonzero).

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

Result

The values returned from the contract call.

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

SignatureR

The signature_r of the wrapped ethereum transaction

Declaration
[JsonPropertyName("r")]
[JsonConverter(typeof(BigIntegerConverter))]
public BigInteger SignatureR { get; set; }
Property Value
Type Description
BigInteger
| Edit this page View Source

SignatureS

The signature_s of the wrapped ethereum transaction

Declaration
[JsonPropertyName("s")]
[JsonConverter(typeof(BigIntegerConverter))]
public BigInteger SignatureS { get; set; }
Property Value
Type Description
BigInteger
| Edit this page View Source

SignatureV

The recovery_id of the wrapped ethereum transaction.

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

TransactionIndex

The position of the transaction in the block.

Declaration
[JsonPropertyName("transaction_index")]
[JsonConverter(typeof(UnsignedLongMirrorConverter))]
public ulong TransactionIndex { get; set; }
Property Value
Type Description
ulong
| Edit this page View Source

TransactionStatus

either 1 (success) or 0 (failure)

Declaration
[JsonPropertyName("status")]
[JsonConverter(typeof(BigIntegerConverter))]
public BigInteger TransactionStatus { get; set; }
Property Value
Type Description
BigInteger
| Edit this page View Source

TransactionType

integer of the transaction type, 0x0 for legacy transactions, 0x1 for access list types, 0x2 for dynamic fees.

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