Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/balance"

Index

Classes

Variables

Functions

Variables

Let SYS

SYS: u64 = StringToSymbol(4, "UGS")

Ultrain block system Token, it's precision is 4, and symbol is "UGS".

Let SYS_NAME

SYS_NAME: u64 = <u64>(SYS >> 8)

Ultrain block system Token name "UGS".

Functions

queryBalance

  • queryBalance(owner: account_name): Asset
  • to query the balance of an account from Ultrain Token system.

    function

    queryBalance

    Parameters

    • owner: account_name

      account name to be queried.

    Returns Asset

    Asset

send

  • send(from: account_name, to: account_name, quantity: Asset, memo: string): void
  • to send Token of UGS from an account to another.

    function

    send

    Parameters

    • from: account_name

      from account

    • to: account_name

      to account

    • quantity: Asset

      Asset to send.

    • memo: string

      a string message

    Returns void

Generated using TypeDoc