Class TokenFilter
Predicate filter on the token.id query parameter.
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 TokenFilter : IMirrorFilter, IMirrorQueryParameter
Remarks
Mirror REST's EntityIdQuery schema accepts the six
comparison forms — equality (default), gt:,
gte:, lt:, lte:, and ne: — on
the token.id query parameter. Each factory builds the
corresponding wire value.
Some endpoints restrict which operators they will honor at
the server level — for example,
/api/v1/accounts/{id}/nfts rejects ne: and
allows only a single occurrence of each comparison form.
See the per-endpoint OpenAPI documentation for the exact
constraints; the filter itself does not enforce them.
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 token.id is strictly greater than the
given entity (gt:).
Declaration
public static TokenFilter After(EntityId token)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | token | The token entity to filter by. |
Returns
| Type | Description |
|---|---|
| TokenFilter |
Before(EntityId)
Records whose token.id is strictly less than the given
entity (lt:).
Declaration
public static TokenFilter Before(EntityId token)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | token | The token entity to filter by. |
Returns
| Type | Description |
|---|---|
| TokenFilter |
Is(EntityId)
Records whose token.id equals the given entity.
Declaration
public static TokenFilter Is(EntityId token)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | token | The token entity to filter by. |
Returns
| Type | Description |
|---|---|
| TokenFilter |
NotIs(EntityId)
Records whose token.id is not equal to the given
entity (ne:).
Declaration
public static TokenFilter NotIs(EntityId token)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | token | The token entity to filter by. |
Returns
| Type | Description |
|---|---|
| TokenFilter |
OnOrAfter(EntityId)
Records whose token.id is at or greater than the given
entity (gte:).
Declaration
public static TokenFilter OnOrAfter(EntityId token)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | token | The token entity to filter by. |
Returns
| Type | Description |
|---|---|
| TokenFilter |
OnOrBefore(EntityId)
Records whose token.id is at or less than the given
entity (lte:).
Declaration
public static TokenFilter OnOrBefore(EntityId token)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | token | The token entity to filter by. |
Returns
| Type | Description |
|---|---|
| TokenFilter |