Hbars
Last updated
Last updated
Constructor
Type
Description
new Hbar(<amount>)
Hbar
Initializes the Hbar object
Method
Type
Description
Hbar.from(<amount, unit>)
HbarUnit
Hbars from the provided denomination
Hbar.fromTinybar(<amount>)
long
Hbars converted from tinybars
Method
Type
Description
as(<unit>)
HbarUnit
Specify the unit of hbar to convert to. Use As
for Go.
toString()
Long
Hbar value converted to tinybars
Method
Type
Description
Hbar.MAX
Hbar
A constant value of the maximum number of hbars (50_000_000_000 hbars)
Hbar.MIN
Hbar
A constant value of the minimum number of hbars (-50_000_000_000 hbars)
Hbar.ZERO
Hbar
A constant value of zero hbars
Function
Description
HbarUnit.Tinybar
The atomic (smallest) unit of hbar, used natively by the Hedera network
HbarUnit.Microbar
Equivalent to 100 tinybar or 1⁄1,000,000 hbar.
HbarUnit.Millibar
Equivalent to 100,000 tinybar or 1⁄1,000 hbar
HbarUnit.Hbar
The base unit of hbar, equivalent to 100 million tinybar.
HbarUnit.Kilobar
Equivalent to 1 thousand hbar or 100 billion tinybar.HbarUnit.Megabar
HbarUnit.Megabar
Equivalent to 1 million hbar or 100 trillion tinybar.
HbarUnit.Gigabar
Equivalent to 1 billion hbar or 100 quadrillion tinybar.