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.
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. |