parse_units
Convert human-readable values like '1.5' to smallest units (e.g., wei) using configurable token decimals. Ensures precise blockchain amount handling for transactions.
Instructions
Convert a human-readable value to its smallest unit (e.g., ETH to wei)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Human-readable value (e.g., '1.5') | |
| decimals | No | Number of decimals (18 for ETH, 6 for USDC) |