Skip to content

balanceNumberToString

balanceNumberToString(input): string

Safely converts the given [[BalanceNumber]] to a string, using the supplied methods, or it given a string checks for valid number representation.

input: Exclude<AnyNumber, Uint8Array>

[[BalanceNumber]] to convert.

string

String representation of the given [[BalanceNumber]].

On invalid number representation if given a string.

On malformed input.

utils/src/Balance.ts:72