Class ContractActionDataExtensions
Extension methods exposing the mirror node's contract-action endpoint.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class ContractActionDataExtensions
Methods
| Edit this page View SourceGetContractActionsByTransactionHashAsync(MirrorRestClient, EvmHash, params IMirrorQueryParameter[])
Retrieves the ordered call graph of a historical contract transaction, identified by its EVM transaction hash.
Declaration
public static IAsyncEnumerable<ContractActionData> GetContractActionsByTransactionHashAsync(this MirrorRestClient client, EvmHash evmTransactionHash, params IMirrorQueryParameter[] 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). |
| IMirrorQueryParameter[] | filters | Optional filters — ContractActionIndexFilter
for narrowing the action position, plus the standard
|
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<ContractActionData> | The sequence of contract actions for the transaction; empty if the transaction has no recorded actions or was not found. |
GetContractActionsByTransactionIdAsync(MirrorRestClient, TransactionId, params IMirrorQueryParameter[])
Retrieves the ordered call graph of a historical contract transaction, identified by its HAPI transaction id.
Declaration
public static IAsyncEnumerable<ContractActionData> GetContractActionsByTransactionIdAsync(this MirrorRestClient client, TransactionId transactionId, params IMirrorQueryParameter[] 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. |
| IMirrorQueryParameter[] | filters | Optional filters — ContractActionIndexFilter
for narrowing the action position, plus the standard
|
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<ContractActionData> | The sequence of contract actions for the transaction; empty if the transaction has no recorded actions or was not found. |