convert_from_base_unit
Convert an ERC20 token amount from its base unit to decimal unit using the token's decimals.
Instructions
Convert an amount of an ERC20 token from its base unit to its decimal unit
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The amount of tokens to convert from base units to decimal units | |
| 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. | |
| decimals | Yes | The number of decimals of the token |