Class ContractFilter
Predicate filter on the contract.id query parameter of
the /api/v1/contracts list endpoint. Construct via one
of the static factories — the ctor is private so the
operator is always explicit at the call site.
Inherited Members
Namespace: Hiero.Mirror.Filters
Assembly: Hiero.dll
Syntax
public sealed class ContractFilter : IMirrorFilter, IMirrorQueryParameter
Remarks
The mirror-node wire pattern for contract.id admits
the six comparison forms — equality (default), gt:,
gte:, lt:, lte:, and ne: —
matching the EntityIdQuery precedent. The pattern
additionally accepts an EVM-address form on the value side,
which EntityId's ToString emits when the
instance carries one.
Distinct from EvmSenderFilter, which filters
the EVM-side from address on the contract-results
endpoints.
Properties
| Edit this page View SourceName
The query parameter name recognized by the remote mirror node.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
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 SourceAfter(EntityId)
Records whose contract.id is strictly greater than
the given entity (gt:).
Declaration
public static ContractFilter After(EntityId contract)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | contract | The contract entity to filter by. |
Returns
| Type | Description |
|---|---|
| ContractFilter |
Before(EntityId)
Records whose contract.id is strictly less than the
given entity (lt:).
Declaration
public static ContractFilter Before(EntityId contract)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | contract | The contract entity to filter by. |
Returns
| Type | Description |
|---|---|
| ContractFilter |
Is(EntityId)
Records whose contract.id equals the given entity.
Declaration
public static ContractFilter Is(EntityId contract)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | contract | The contract entity to filter by. |
Returns
| Type | Description |
|---|---|
| ContractFilter |
NotIs(EntityId)
Records whose contract.id is not equal to the given
entity (ne:).
Declaration
public static ContractFilter NotIs(EntityId contract)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | contract | The contract entity to filter by. |
Returns
| Type | Description |
|---|---|
| ContractFilter |
OnOrAfter(EntityId)
Records whose contract.id is at or greater than the
given entity (gte:).
Declaration
public static ContractFilter OnOrAfter(EntityId contract)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | contract | The contract entity to filter by. |
Returns
| Type | Description |
|---|---|
| ContractFilter |
OnOrBefore(EntityId)
Records whose contract.id is at or less than the
given entity (lte:).
Declaration
public static ContractFilter OnOrBefore(EntityId contract)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | contract | The contract entity to filter by. |
Returns
| Type | Description |
|---|---|
| ContractFilter |