Class: BZZ
Defined in: bee-js/src/utils/tokens.ts:4
Properties
DIGITS
readonlystaticDIGITS:16=16
Defined in: bee-js/src/utils/tokens.ts:5
Methods
divide()
divide(
other):BZZ
Defined in: bee-js/src/utils/tokens.ts:63
Does not mutate the current BZZ instance.
Parameters
other
bigint
Divisor
Returns
BZZ
New BZZ instance
eq()
eq(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:83
Parameters
other
BZZ
Returns
boolean
exchangeToDAI()
exchangeToDAI(
daiPerBzz):DAI
Defined in: bee-js/src/utils/tokens.ts:87
Parameters
daiPerBzz
Returns
gt()
gt(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:67
Parameters
other
BZZ
Returns
boolean
gte()
gte(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:71
Parameters
other
BZZ
Returns
boolean
lt()
lt(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:75
Parameters
other
BZZ
Returns
boolean
lte()
lte(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:79
Parameters
other
BZZ
Returns
boolean
minus()
minus(
other):BZZ
Defined in: bee-js/src/utils/tokens.ts:53
Does not mutate the current BZZ instance.
Parameters
other
BZZ instance, or amount in PLUR
string | bigint | BZZ | NumberString
Returns
BZZ
New BZZ instance
plus()
plus(
other):BZZ
Defined in: bee-js/src/utils/tokens.ts:43
Does not mutate the current BZZ instance.
Parameters
other
BZZ instance, or amount in PLUR
string | bigint | BZZ | NumberString
Returns
BZZ
New BZZ instance
toDecimalString()
toDecimalString():
string
Defined in: bee-js/src/utils/tokens.ts:29
Returns
string
toPLURBigInt()
toPLURBigInt():
bigint
Defined in: bee-js/src/utils/tokens.ts:25
Returns
bigint
toPLURString()
toPLURString():
string
Defined in: bee-js/src/utils/tokens.ts:21
Returns
string
toSignificantDigits()
toSignificantDigits(
digits):string
Defined in: bee-js/src/utils/tokens.ts:33
Parameters
digits
number
Returns
string
fromDecimalString()
staticfromDecimalString(string):BZZ
Defined in: bee-js/src/utils/tokens.ts:13
Parameters
string
string
Returns
BZZ
fromPLUR()
staticfromPLUR(plur):BZZ
Defined in: bee-js/src/utils/tokens.ts:17
Parameters
plur
string | bigint | NumberString
Returns
BZZ