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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token": "<token>"
},
"name": "getDecimals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The token address | |
| chainId | No | If not specified, returns decimals for all supported chains. |