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