Show / Hide Table of Contents

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.

Inheritance
object
TransactionHashFilter
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 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 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 — 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 Source

Is(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
| Edit this page View Source

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 hash is neither 32 nor 48 bytes long.

Implements

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