dsteem
    Preparing search index...

    Class Asset

    Class representing a steem asset, e.g. 1.000 STEEM or 12.112233 VESTS.

    Index

    Constructors

    Properties

    amount: number
    symbol: AssetSymbol

    Methods

    • For JSON serialization, same as toString().

      Returns string

    • Return a string representation of this asset, e.g. 42.000 STEEM.

      Returns string

    • Convenience to create new Asset.

      Parameters

      • value: string | number | Asset
      • Optionalsymbol: AssetSymbol

        Symbol to use when created from number. Will also be used to validate the asset, throws if the passed value has a different symbol than this.

      Returns Asset