token_metadata
Retrieve ERC-20 token metadata including name, symbol, decimals, and total supply directly from the contract, even for tokens returning bytes32 values.
Instructions
Read name, symbol, decimals and total supply directly from a token contract. Tolerates tokens that return bytes32 instead of string.
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": "token_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes |