참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
function toQuantity(value): string
Returns a HexString for value safe to use as a Quantity. A Quantity does not have and leading 0 values unless the value is the literal value 0x0. This is most commonly used for JSSON-RPC numeric values.

Parameters

ParameterTypeDescription
valuestring | number | bigint | Uint8ArrayThe value to convert.

Returns

string The quantity.

Source

utils/maths.ts:321