Class MintblueWriter

An implementation of the Writer interface that integrates with the mintBlue SDK. This writer sends transactional data to the mintBlue platform.

Hierarchy

  • MintblueWriter

Implements

Constructors

Properties

Methods

Constructors

Properties

mintblue: Mintblue
project_id: string

Methods

  • Factory method to create an instance of the MintblueWriter. Initializes the mintBlue SDK and returns a new writer instance.

    Parameters

    • sdkToken: string

      The SDK token for authentication with mintBlue.

    • project_id: string

      The project identifier in mintBlue where the data will be written.

    Returns Promise<MintblueWriter>

    A promise that resolves to a new MintblueWriter instance.

  • Writes the given action as a transaction to the mintBlue platform.

    Parameters

    • action: Action

      The action to write.

    Returns Promise<void>

    A promise that resolves when the write operation completes or rejects on error.

    Throws

    Will throw an error if the mintBlue SDK has not been initialized.

Generated using TypeDoc