getDecimals
Retrieve the decimal precision of ERC20 tokens by providing the token address and optional chain ID for accurate cryptocurrency calculations and research.
Instructions
Gets the number of decimals of an ERC20 token
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The token address | |
| chainId | No | If not specified, returns decimals for all supported chains. |