注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。
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
Returns
bigint
The converted value.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。
function parseUnits(value, unit?): bigint
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).
| Parameter | Type | Description |
|---|---|---|
value | string | The value to convert. |
unit? | string | Numeric | The unit to convert from. Default is 18 |
bigint
The converted value.
