Show / Hide Table of Contents

Class OpcodesDataExtensions

Extension methods exposing the mirror node's opcode-trace endpoint.

Inheritance
object
OpcodesDataExtensions
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 static class OpcodesDataExtensions

Methods

| Edit this page View Source

GetContractOpcodesByTransactionHashAsync(MirrorRestClient, EvmHash, params IMirrorProjection[])

Retrieves the opcode-level execution trace of a historical transaction, identified by its EVM transaction hash. The mirror node re-executes the transaction on the EVM to produce the trace — for busy transactions this can take several seconds, especially when memory or stack projections are requested.

Declaration
public static Task<OpcodesData?> GetContractOpcodesByTransactionHashAsync(this MirrorRestClient client, EvmHash evmTransactionHash, params IMirrorProjection[] filters)
Parameters
Type Name Description
MirrorRestClient client

Mirror Rest Client to use for the request.

EvmHash evmTransactionHash

The EVM transaction hash (not to be confused with the raw HAPI transaction hash).

IMirrorProjection[] filters

Optional projection toggles recognized by this endpoint — OpcodeStackProjectionFilter, OpcodeMemoryProjectionFilter, and OpcodeStorageProjectionFilter. Server defaults are include-stack and exclude-memory / exclude-storage.

Returns
Type Description
Task<OpcodesData>

The opcode trace, or null if the transaction was not found.

| Edit this page View Source

GetContractOpcodesByTransactionIdAsync(MirrorRestClient, TransactionId, params IMirrorProjection[])

Retrieves the opcode-level execution trace of a historical transaction, identified by its HAPI transaction id. The mirror node re-executes the transaction on the EVM to produce the trace — for busy transactions this can take several seconds, especially when memory or stack projections are requested.

Declaration
public static Task<OpcodesData?> GetContractOpcodesByTransactionIdAsync(this MirrorRestClient client, TransactionId transactionId, params IMirrorProjection[] filters)
Parameters
Type Name Description
MirrorRestClient client

Mirror Rest Client to use for the request.

TransactionId transactionId

The HAPI transaction id, not the EVM transaction hash.

IMirrorProjection[] filters

Optional projection toggles recognized by this endpoint — OpcodeStackProjectionFilter, OpcodeMemoryProjectionFilter, and OpcodeStorageProjectionFilter. Server defaults are include-stack and exclude-memory / exclude-storage.

Returns
Type Description
Task<OpcodesData>

The opcode trace, or null if the transaction was not found.

  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph