Options
All
  • Public
  • Public/Protected
  • All
Menu

User wallet

Hierarchy

  • PublicWallet

Index

Constructors

constructor

Methods

addBalance

  • addBalance(amount: number, currency: string): Promise<boolean>
  • Add a specified amount to the specified currency wallet

    deprecated

    Will be removed in the near future

    Parameters

    • amount: number
    • currency: string

      Name of the currency to add to

    Returns Promise<boolean>

getBalance

  • getBalance(filter?: Array<string>): Promise<Object>
  • Fetch the balance

    Parameters

    • Optional filter: Array<string>

    Returns Promise<Object>

updateBalance

  • updateBalance(amount: number, currency: string): Promise<Object>
  • Sets the specified $currency wallet to the specified $amount

    deprecated

    Will be removed in the near future

    Parameters

    • amount: number
    • currency: string

      Name of the currency to set

    Returns Promise<Object>

Generated using TypeDoc