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

    Class StoreMessageClient

    Hierarchy

    Index

    Constructors

    • Parameters

      • apiServer: string = DEFAULT_API_V2

      Returns StoreMessageClient

    Properties

    apiServer: string
    messageType: MessageType

    Methods

    • Retrieves a file from the network.

      Parameters

      • fileHash: string

        The item_hash of the STORE message of the file to retrieve.

      Returns Promise<ArrayBuffer>

    • Parameters

      • buffer: Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>
      • storageEngine: ItemType
      • fileHash: undefined | string
      • apiServer: string

      Returns Promise<string>