Show / Hide Table of Contents

Class HcsMessageDataExtensions

Extension methods for querying HCS message data from the mirror node.

Inheritance
object
HcsMessageDataExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class HcsMessageDataExtensions

Methods

| Edit this page View Source

GetHcsMessageAsync(MirrorRestClient, EntityId, ulong)

Retrieves an HCS message with the given topic and sequence number.

Declaration
public static Task<HcsMessageData?> GetHcsMessageAsync(this MirrorRestClient client, EntityId topic, ulong sequenceNumber)
Parameters
Type Name Description
MirrorRestClient client

Mirror Rest Client to use for the request.

EntityId topic

The HCS message topic to retrieve.

ulong sequenceNumber

The sequence number of the message within the topic stream to retrieve.

Returns
Type Description
Task<HcsMessageData>

The HCS Message information or null if not found.

| Edit this page View Source

GetHcsMessagesAsync(MirrorRestClient, EntityId, params IMirrorQueryFilter[])

Retrieves a list of HCS messages. Messages may be filtered by a starting sequence number or consensus timestamp.

Declaration
public static IAsyncEnumerable<HcsMessageData> GetHcsMessagesAsync(this MirrorRestClient client, EntityId topic, params IMirrorQueryFilter[] filters)
Parameters
Type Name Description
MirrorRestClient client

Mirror Rest Client to use for the request.

EntityId topic

The topic id of the HCS stream.

IMirrorQueryFilter[] filters

Additional query filters if desired.

Returns
Type Description
IAsyncEnumerable<HcsMessageData>

An enumerable of HCS Messages meeting the given criteria, may be empty if none are found.

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