evm_get_token_decimals
Retrieve the decimals value for an ERC-20 token on supported EVM chains to correctly format token amounts and perform precise calculations.
Instructions
Get the number of decimals for an ERC-20 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": {
"chain": "<chain>",
"tokenAddress": "<tokenAddress>"
},
"name": "evm_get_token_decimals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| tokenAddress | Yes | ERC-20 token contract address |