Class EvmCallData
Call data to be sent to the mirror node for simulation
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public class EvmCallData
Constructors
| Edit this page View SourceEvmCallData()
Constructor, leaving all parameters as their original default values.
Declaration
public EvmCallData()
EvmCallData(EvmAddress, string, params object[])
Helper Constructor for contract calls, sets the To property to the contract address and builds the Data property from the 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 |
), with no
arguments, sends no call data, which runs the contract's
|
| object[] | args | Optional additional method arguments |
Properties
| Edit this page View SourceBlock
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 |
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>? |
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 |
From
The message sender EVM formatted address.
Declaration
[JsonPropertyName("from")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public EvmAddress? From { get; set; }
Property Value
| Type | Description |
|---|---|
| EvmAddress |
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? |
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? |
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 |
Value
The amount of hbar, in tinybars, 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? |