Class EvmCallResultExtensions
Extension methods for simulating EVM contract calls via the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class EvmCallResultExtensions
Methods
| Edit this page View SourceCallEvmAsync(MirrorRestClient, EvmCallData)
Simulates a call to the Hedera EVM via the
POST /api/v1/contracts/call endpoint. Usable for pure /
view methods (read-only inspection) or for estimating what a
state-changing call would return — the mirror node's simulation
does not persist state regardless.
Declaration
public static Task<EncodedParams> CallEvmAsync(this MirrorRestClient client, EvmCallData callData)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| EvmCallData | callData | The arguments identifying the contract, method and arguments to send to the simulated EVM. |
Returns
| Type | Description |
|---|---|
| Task<EncodedParams> | The encoded parameters returned from the simulated EVM call. |