debeem-wallet

Implements

Constructors

Methods

Basic Methods

  • Retrieves the number of records matching the given wallet and query in a store.

    Parameters

    • wallet: string

      {string} wallet address

    • Optional query: string

      {string} query string

    Returns Promise<number>

  • get all keys by wallet address

    Parameters

    • wallet: string

      {string} wallet address

    • Optional query: string

      {string} query string

    • Optional maxCount: number

      {number} maximum limit number

    Returns Promise<null | string[]>

Extended Methods

  • Get the default data by the this.getDefault() method and flush the data into the database

    Parameters

    • wallet: string

      {string} wallet address

    Returns Promise<boolean>

    Remark

    Data is stored in a key-value structure. If a key with the same name already exists, the original data will be overwritten instead of inserting a new record.