- Preparing search index...
- The search index is not available
@hiveio/dhive
Constructors
constructor
- new Asset(amount: number, symbol: AssetSymbol): Asset
-
Properties
Readonly
amount
amount: number
Readonly
symbol
Methods
add
- add(amount: string | number | Asset): Asset
-
Parameters
-
amount: string | number | Asset
divide
- divide(divisor: string | number | Asset): Asset
-
Parameters
-
divisor: string | number | Asset
getPrecision
- getPrecision(): number
-
Returns number
multiply
- multiply(factor: string | number | Asset): Asset
-
Parameters
-
factor: string | number | Asset
steem_symbols
- steem_symbols(): Asset
-
subtract
- subtract(amount: string | number | Asset): Asset
-
Parameters
-
amount: string | number | Asset
toJSON
- toJSON(): string
-
Returns string
toString
- toString(): string
-
Returns string
Static
from
- from(value: string | number | Asset, symbol?: AssetSymbol): Asset
-
Parameters
-
value: string | number | Asset
-
Static
fromString
- fromString(string: string, expectedSymbol?: AssetSymbol): Asset
-
Class representing a hive asset, e.g.
1.000 HIVE
or12.112233 VESTS
.