Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 877 Bytes

eth-connect.fromwei.md

File metadata and controls

27 lines (16 loc) · 877 Bytes

Home > eth-connect > fromWei

fromWei() function

Takes a number of wei and converts it to any other ether unit.

Possible units are: SI Short SI Full Effigy Other - kwei femtoether babbage - mwei picoether lovelace - gwei nanoether shannon nano - -- microether szabo micro - -- milliether finney milli - ether -- -- - kether -- grand - mether - gether - tether

Signature:

export declare function fromWei(num: BigNumber, unit: Unit): BigNumber;

Parameters

Parameter Type Description
num BigNumber
unit Unit

Returns:

BigNumber