Show / Hide Table of Contents

Class TransactionDetailDataExtensions

Extension methods for querying transaction detail data from the mirror node.

Inheritance
object
TransactionDetailDataExtensions
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 TransactionDetailDataExtensions

Methods

| Edit this page View Source

GetTransactionAsync(MirrorRestClient, ConsensusTimeStamp)

Retrieves the single transaction record at a given consensus timestamp via /api/v1/transactions?timestamp={consensus}&limit=100 — consensus timestamps are globally unique across the network, so equality narrows the list to at most one record. The method unwraps the first item.

Declaration
public static Task<TransactionDetailData?> GetTransactionAsync(this MirrorRestClient client, ConsensusTimeStamp consensus)
Parameters
Type Name Description
MirrorRestClient client

Mirror Rest Client to use for the request.

ConsensusTimeStamp consensus

The consensus timestamp for the transaction.

Returns
Type Description
Task<TransactionDetailData>

The transaction details, or null if not found.

| Edit this page View Source

GetTransactionGroupAsync(MirrorRestClient, TransactionId)

Retrieves the parent/child transaction group for the given root transaction id via /api/v1/transactions/{id}. A single HAPI transaction can fan out into a parent record plus zero or more child records (from nested contract calls, scheduled transactions, etc.); this method returns the whole group in one call.

Declaration
public static Task<TransactionDetailData[]> GetTransactionGroupAsync(this MirrorRestClient client, TransactionId transactionId)
Parameters
Type Name Description
MirrorRestClient client

Mirror Rest Client to use for the request.

TransactionId transactionId

The transaction ID to search by.

Returns
Type Description
Task<TransactionDetailData[]>

A list of transactions (including child transactions with nonces) matching the given transaction ID, or an empty list if none are found.

Remarks

Passing a TransactionId that already carries a ChildNonce or Scheduled flag narrows the response to that specific record — the server adds the corresponding query-parameter filter automatically. In that case the "group" is usually a single record, and the method's plural return shape (TransactionDetailData[]) degrades gracefully to length 1.

| Edit this page View Source

GetTransactionsAsync(MirrorRestClient, params IMirrorQueryParameter[])

Enumerates transactions across the network. Pair with AccountFilter to narrow to a single account (credit or debit), ResultFilter to restrict to success or failure, TransferDirectionFilter for credit/debit, TransactionTypeFilter for a specific HAPI transaction kind, or TimestampFilter to bracket a time window.

Declaration
public static IAsyncEnumerable<TransactionDetailData> GetTransactionsAsync(this MirrorRestClient client, params IMirrorQueryParameter[] filters)
Parameters
Type Name Description
MirrorRestClient client

Mirror Rest Client to use for the request.

IMirrorQueryParameter[] filters

Additional query parameters. The endpoint supports AccountFilter, ResultFilter, TransferDirectionFilter, TransactionTypeFilter, TimestampFilter, PageLimit, and OrderBy.

Returns
Type Description
IAsyncEnumerable<TransactionDetailData>

An async enumerable of transactions (which may include child transactions) matching the supplied filters. To list transactions that involve a specific account (regardless of payer status), pass AccountFilter.Is(account).

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