parseUnits
Convert decimal strings into their smallest unit representation, such as converting Ether to Wei, for accurate blockchain transactions and calculations in Ethereum networks.
Instructions
Convert a decimal string to its smallest unit representation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
unit | Yes | The number of decimals or unit name (e.g., 'gwei', 18) | |
value | Yes | The decimal string to parse |