Show / Hide Table of Contents

Class ContractLogIndexFilter

Predicate filter on the index query parameter of the two contract-log list endpoints — /api/v1/contracts/results/logs and /api/v1/contracts/{contractIdOrAddress}/results/logs. Narrows results to contract-log entries at a specific block-local position (or to a comparison range thereof). Construct via one of the static factories — the ctor is private so the operator is always explicit at the call site.

Inheritance
object
ContractLogIndexFilter
Implements
IMirrorFilter
IMirrorQueryParameter
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero.Mirror.Filters
Assembly: Hiero.dll
Syntax
public sealed class ContractLogIndexFilter : IMirrorFilter, IMirrorQueryParameter
Remarks

Unlike the sibling ContractActionIndexFilter — which shares the same index wire name on the contract-actions endpoint — the log endpoints accept only five operators on the wire: equality (default), gt:, gte:, lt:, and lte:. The schema regex ^((eq|gt|gte|lt|lte):)?\d{1,10}$ explicitly excludes ne:, so no NotIs factory is exposed.

The mirror-node spec also requires a TimestampFilter to be present in the same request whenever this filter appears — the server 400s otherwise. The SDK does not enforce this client side; pass both filters together.

This filter is deliberately distinct from ContractActionIndexFilter: the two endpoints share the index wire name but differ in semantic scope (action-index vs. log-index) and in operator palette (actions accept ne, logs do not).

Properties

| Edit this page View Source

Name

The query parameter name recognized by the remote mirror node.

Declaration
public string Name { get; }
Property Value
Type Description
string
| Edit this page View Source

Value

The value of the query parameter sent to the mirror node — already includes the operator prefix where applicable.

Declaration
public string Value { get; }
Property Value
Type Description
string

Methods

| Edit this page View Source

After(int)

Log entries whose index is strictly greater than the given value (gt:).

Declaration
public static ContractLogIndexFilter After(int index)
Parameters
Type Name Description
int index
Returns
Type Description
ContractLogIndexFilter
| Edit this page View Source

Before(int)

Log entries whose index is strictly less than the given value (lt:).

Declaration
public static ContractLogIndexFilter Before(int index)
Parameters
Type Name Description
int index
Returns
Type Description
ContractLogIndexFilter
| Edit this page View Source

Is(int)

Log entries whose index equals the given value.

Declaration
public static ContractLogIndexFilter Is(int index)
Parameters
Type Name Description
int index
Returns
Type Description
ContractLogIndexFilter
| Edit this page View Source

OnOrAfter(int)

Log entries whose index is at or greater than the given value (gte:).

Declaration
public static ContractLogIndexFilter OnOrAfter(int index)
Parameters
Type Name Description
int index
Returns
Type Description
ContractLogIndexFilter
| Edit this page View Source

OnOrBefore(int)

Log entries whose index is at or less than the given value (lte:).

Declaration
public static ContractLogIndexFilter OnOrBefore(int index)
Parameters
Type Name Description
int index
Returns
Type Description
ContractLogIndexFilter

Implements

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