convert_from_base_units
Convert token amounts from base units like wei to human-readable decimals. Specify a token contract address or rely on the chain's native currency defaults for accurate conversion.
Instructions
Convert a token amount from its smallest unit (e.g., wei) to human-readable units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The amount to convert (in base units, e.g., wei). | |
| chainId | No | Optional EVM chain ID to run this tool on (e.g. 1 for Ethereum, 8453 for Base, 42161 for Arbitrum). Defaults to the active wallet chain. | |
| tokenAddress | No | Optional: The contract address of the token. If omitted, native currency decimals are used. |