Show / Hide Table of Contents

Class ExtendedContractLogDataExtensions

Extension methods for querying contract log data from the mirror node.

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

Methods

| Edit this page View Source

GetAllContractLogEventsAsync(MirrorRestClient, params IMirrorQueryParameter[])

Enumerates log events across every contract on the network. Same filter palette as GetContractLogEventsAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[]), without the per-contract scoping.

Declaration
public static IAsyncEnumerable<ExtendedContractLogData> GetAllContractLogEventsAsync(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 TimestampFilter, EvmTopicFilter, TransactionHashFilter, ContractLogIndexFilter, PageLimit, and OrderBy.

Returns
Type Description
IAsyncEnumerable<ExtendedContractLogData>

An async enumerable of contract log events meeting the given criteria.

Remarks

The mirror node requires a TimestampFilter to accompany any ContractLogIndexFilter (or any EvmTopicFilter); passing the index or topic filter alone will yield a server-side 400.

| Edit this page View Source

GetContractLogEventsAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])

Enumerates log events emitted by a specific contract. Narrow by TimestampFilter, event-log topic via EvmTopicFilter, originating transaction hash via TransactionHashFilter, or block-local position via ContractLogIndexFilter.

Declaration
public static IAsyncEnumerable<ExtendedContractLogData> GetContractLogEventsAsync(this MirrorRestClient client, EntityId contract, params IMirrorQueryParameter[] filters)
Parameters
Type Name Description
MirrorRestClient client

Mirror Rest Client to use for the request.

EntityId contract

The entityId of the contract.

IMirrorQueryParameter[] filters

Additional query parameters. The endpoint supports TimestampFilter, EvmTopicFilter, TransactionHashFilter, ContractLogIndexFilter, PageLimit, and OrderBy.

Returns
Type Description
IAsyncEnumerable<ExtendedContractLogData>

An async enumerable of contract log events meeting the given criteria.

Remarks

The mirror node requires a TimestampFilter to accompany any ContractLogIndexFilter (or any EvmTopicFilter); passing the index or topic filter alone will yield a server-side 400.

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