toPicoWay
toPicoWay(
input,unit):BN
Converts the given [[BalanceNumber]] to the pico WAY equivalent.
Parameters
• input: Exclude<AnyNumber, Uint8Array>
[[BalanceNumber]] to convert.
• unit: MetricPrefix= 'WAY'
Metric prefix of the given [[BalanceNumber]].
Returns
BN
Exact BN representation in picoWay, to use in transactions and calculations.
Throws
Unknown metricPrefix, or if the input has too many decimal places for it’s unit.