formatWayBalance
formatWayBalance(
amount,additionalOptions?):string
Uses the polkadot.js balance formatter, to convert given BN to a human readable prefixed number.
Parameters
• amount: Exclude<AnyNumber, Uint8Array>
BN to format.
• additionalOptions?: BalanceOptions
Optional formatting settings, these are defaulted to CORD specific settings.
Returns
string
String representation of the given BN with prefix and unit (‘WAY’ as default).