@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>

    • Retrieves the raw stored metadata of a file by its hash.

      Parameters

      • fileHash: string

        The hash of the file.

      Returns Promise<Record<string, any>>

    • Retrieves the number of pins referencing a given file hash.

      Parameters

      • hash: string

        The hash of the file.

      Returns Promise<number>

    • Parameters

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

      Returns Promise<string>