注意: 此页面尚未翻译成中文。以下内容为英文原版。
value to a BigInt, assuming unit decimal places. The unit may the number of decimal
places or the name of a unit (e.g. "gwei" for 9 decimal places).
Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | The value to convert. |
unit? | string | Numeric | The unit to convert from. Default is 18 |
Returns
bigint
The converted value.
