Show / Hide Table of Contents

Class EvmCallData

Call data to be sent to the mirror node for simulation

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

Constructors

| Edit this page View Source

EvmCallData()

Constructor, leaving all parameters as their original default values.

Declaration
public EvmCallData()
| Edit this page View Source

EvmCallData(EvmAddress, string, params object[])

Helper Constructor for contract calls, sets up the data property based upon the contract address, method name and parameters.

Declaration
public EvmCallData(EvmAddress contract, string method, params object[] args)
Parameters
Type Name Description
EvmAddress contract

Contract address to call.

string method

Contract method to invoke.

object[] args

Optional additional method arguments

Properties

| Edit this page View Source

Block

Typically "latest", but can be specific historical blocks when a hexadecimal or decimal block number is provided.

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

Data

The ABI Encoded Call Input to send to the EVM

Declaration
[JsonPropertyName("data")]
[JsonConverter(typeof(HexStringToBytesConverter))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ReadOnlyMemory<byte>? Data { get; set; }
Property Value
Type Description
ReadOnlyMemory<byte>?
| Edit this page View Source

EstimateGas

If set to true, gas estimation is included in the results, only valid when block is "latest".

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

From

The message sender EVM formatted address.

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

Gas

The amount of gas allocated for the call.

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

GasPrice

The gas price set for the call.

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

To

The address of the contract that is being called (or simulated hBar sent to)

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

Value

The amount of hbar to simulate sending to the contract or remote address.

Declaration
[JsonPropertyName("value")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ulong? Value { get; set; }
Property Value
Type Description
ulong?
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph