Class OpcodesDataExtensions
Extension methods exposing the mirror node's opcode-trace endpoint.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class OpcodesDataExtensions
Methods
| Edit this page View SourceGetContractOpcodesByTransactionHashAsync(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. |
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. |