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
Returns
string
The quantity.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
function toQuantity(value): string
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.
| Parameter | Type | Description |
|---|---|---|
value | string | number | bigint | Uint8Array | The value to convert. |
string
The quantity.
Was this page helpful?
