getDecimals
Retrieve the number of decimals for any ERC20 token by specifying its address, with optional chain ID support. Simplify token data analysis and integration.
Instructions
Gets the number of decimals of an ERC20 token
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | If not specified, returns decimals for all supported chains. | |
token | Yes | The token address |