@aleph-sdk/monorepo
    Preparing search index...

    Class BaseMessageClient

    Index

    Constructors

    Properties

    apiServer: string
    wsServer: string

    Methods

    • Retrieves only the content of a message, without the surrounding message envelope.

      Type Parameters

      • Content = any

      Parameters

      • item_hash: string

        The hash of the message to query.

      Returns Promise<Content>

    • Retrieves the processing status of a message (pending, processed, rejected or forgotten).

      Lighter than get: it returns only the status and reception time, without the message content.

      Unlike get and getError, a forgotten message is returned as data with status "forgotten" rather than throwing ForgottenMessageError. Callers must inspect the returned status field; no exception is thrown for forgotten, rejected or pending states. Only a missing hash (404) throws (MessageNotFoundError).

      Parameters

      • item_hash: string

        The hash of the message to query.

      Returns Promise<MessageStatusInfo>