Class TransactionHashFilter
Predicate filter on the transaction.hash query parameter of
the cross-contract logs endpoint (/api/v1/contracts/results/logs).
Scopes the returned log events to a single transaction without
needing to know which contract emitted them.
Inherited Members
Namespace: Hiero.Mirror.Filters
Assembly: Hiero.dll
Syntax
public sealed class TransactionHashFilter : IMirrorFilter, IMirrorQueryParameter
Remarks
The wire format accepts either a 32-byte Ethereum transaction hash (64 hex chars) or a 48-byte Hedera SHA-384 transaction hash (96 hex chars). Use Is(EvmHash) when you already have an EvmHash; use Is(ReadOnlyMemory<byte>) for raw bytes (EVM 32-byte or Hedera 48-byte). Construct via the static factories; the ctor is private.
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 — a
0x-prefixed lowercase hex string, 64 or 96 characters.
Declaration
public string Value { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceIs(EvmHash)
Records whose transaction.hash equals the given 32-byte
EVM transaction hash.
Declaration
public static TransactionHashFilter Is(EvmHash evmHash)
Parameters
| Type | Name | Description |
|---|---|---|
| EvmHash | evmHash | The EVM transaction hash (32 bytes, keccak-256). |
Returns
| Type | Description |
|---|---|
| TransactionHashFilter |
Is(ReadOnlyMemory<byte>)
Records whose transaction.hash equals the given raw hash
bytes. Accepts 32-byte EVM hashes and 48-byte Hedera SHA-384
hashes; any other length throws.
Declaration
public static TransactionHashFilter Is(ReadOnlyMemory<byte> hash)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlyMemory<byte> | hash | The transaction hash bytes — must be 32 or 48 bytes. |
Returns
| Type | Description |
|---|---|
| TransactionHashFilter |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown when |