formatUnits
Convert Ethereum values to decimal strings using specified units (e.g., 'gwei') for precise blockchain transactions and data handling.
Instructions
Convert a value to a decimal string with specified units
Input Schema
Name | Required | Description | Default |
---|---|---|---|
unit | Yes | The number of decimals or unit name (e.g., 'gwei', 18) | |
value | Yes | The value to format |