Get ERC-20 token info
get_token_infoRead an ERC-20 token's name, symbol, decimals, and total supply at a given or latest block. Use it to inspect token metadata; unimplemented fields return null.
Instructions
Read an ERC-20 token's name, symbol, decimals and total supply. Fields the contract does not implement are null.
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": "get_token_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | Block to read at. Defaults to latest. An integer block number or a tag: latest, safe, finalized, earliest, pending. | |
| token | Yes | ERC-20 token contract address. 0x followed by 40 hex characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| token | Yes | ||
| symbol | Yes | ||
| decimals | Yes | ||
| totalSupply | Yes | raw is in the token's smallest unit; formatted applies decimals. |