- fromWei(weiInput: string | number | bigint, unit: "noether" | "wei" | "kwei" | "Kwei" | "babbage" | "femtoether" | "mwei" | "Mwei" | "lovelace" | "picoether" | "gwei" | "Gwei" | "shannon" | "nanoether" | "nano" | "szabo" | "microether" | "micro" | "finney" | "milliether" | "milli" | "ether" | "kether" | "grand" | "mether" | "gether" | "tether", optionsInput?: {
commify?: boolean;
pad?: boolean;
}): string
-
Parameters
-
weiInput: string | number | bigint
-
unit: "noether" | "wei" | "kwei" | "Kwei" | "babbage" | "femtoether" | "mwei" | "Mwei" | "lovelace" | "picoether" | "gwei" | "Gwei" | "shannon" | "nanoether" | "nano" | "szabo" | "microether" | "micro" | "finney" | "milliether" | "milli" | "ether" | "kether" | "grand" | "mether" | "gether" | "tether"
-
Optional
optionsInput: {
commify?: boolean;
pad?: boolean;
}
-
Optional
commify?: boolean
-
Optional
pad?: boolean
Returns string
Converts a number from Wei to a string.
Returns
The string representation of the number.
Throws
Error if the number is invalid.