@hiero-ledger/sdk
    Preparing search index...

    Class TopicMessageQuery

    Represents a class that you can use to subscribe to different topics on Hedera network.

    Index

    Constructors

    • Parameters

      • props: {
            completionHandler?: () => void;
            endTime?: Timestamp;
            errorHandler?: (message: null | TopicMessage, error: Error) => void;
            limit?: number | Long;
            retryHandler?: (error: null | Error | MirrorError) => boolean;
            startTime?: Timestamp;
            topicId?: string | TopicId;
        } = {}

      Returns TopicMessageQuery

    Properties

    _listener: null | ((message: TopicMessage) => void)
    _maxAttempts: number

    Accessors

    Methods

    • Sets the consensus time to start receiving messages from.

      If not set, the mirror node starts at its current time. If the subscription fails before the first message arrives, the retry starts from the time subscribe() was called, read from the client clock.

      Parameters

      Returns TopicMessageQuery