Skip to main content

Class: BZZ

Defined in: bee-js/src/utils/tokens.ts:4

Properties​

DIGITS​

readonly static DIGITS: 16 = 16

Defined in: bee-js/src/utils/tokens.ts:5

Methods​

divide()​

divide(other): BZZ

Defined in: bee-js/src/utils/tokens.ts:71

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:91

Parameters​

other​

BZZ

Returns​

boolean


exchangeToDAI()​

exchangeToDAI(daiPerBzz): DAI

Defined in: bee-js/src/utils/tokens.ts:95

Parameters​

daiPerBzz​

DAI

Returns​

DAI


gt()​

gt(other): boolean

Defined in: bee-js/src/utils/tokens.ts:75

Parameters​

other​

BZZ

Returns​

boolean


gte()​

gte(other): boolean

Defined in: bee-js/src/utils/tokens.ts:79

Parameters​

other​

BZZ

Returns​

boolean


lt()​

lt(other): boolean

Defined in: bee-js/src/utils/tokens.ts:83

Parameters​

other​

BZZ

Returns​

boolean


lte()​

lte(other): boolean

Defined in: bee-js/src/utils/tokens.ts:87

Parameters​

other​

BZZ

Returns​

boolean


minus()​

minus(other): BZZ

Defined in: bee-js/src/utils/tokens.ts:61

Does not mutate the current BZZ instance.

Parameters​

other​

BZZ instance, or amount in PLUR

string | bigint | NumberString | BZZ

Returns​

BZZ

New BZZ instance


plus()​

plus(other): BZZ

Defined in: bee-js/src/utils/tokens.ts:51

Does not mutate the current BZZ instance.

Parameters​

other​

BZZ instance, or amount in PLUR

string | bigint | NumberString | BZZ

Returns​

BZZ

New BZZ instance


toDecimalString()​

toDecimalString(): string

Defined in: bee-js/src/utils/tokens.ts:33

Returns​

string


toFloat()​

toFloat(): number

Defined in: bee-js/src/utils/tokens.ts:37

Returns​

number


toPLURBigInt()​

toPLURBigInt(): bigint

Defined in: bee-js/src/utils/tokens.ts:29

Returns​

bigint


toPLURString()​

toPLURString(): string

Defined in: bee-js/src/utils/tokens.ts:25

Returns​

string


toSignificantDigits()​

toSignificantDigits(digits): string

Defined in: bee-js/src/utils/tokens.ts:41

Parameters​

digits​

number

Returns​

string


fromDecimalString()​

static fromDecimalString(string): BZZ

Defined in: bee-js/src/utils/tokens.ts:13

Parameters​

string​

string

Returns​

BZZ


fromFloat()​

static fromFloat(float): BZZ

Defined in: bee-js/src/utils/tokens.ts:21

Parameters​

float​

number

Returns​

BZZ


fromPLUR()​

static fromPLUR(plur): BZZ

Defined in: bee-js/src/utils/tokens.ts:17

Parameters​

plur​

string | bigint | NumberString

Returns​

BZZ

💬 Get Help