getTokenDetails
Fetch token details (ERC-20, TRC-20, SPL, etc.) including decimals for converting raw token amounts into human-readable values. Use this tool to ensure accurate balance display across multiple blockchains.
Instructions
Fetches information about a non-native token (ERC-20, TRC-20, SPL, etc.) - not the chain's native currency. CRITICAL: This provides the 'decimals' field needed to convert raw token amounts from getAccountState() to human-readable values. Always call this for each token when displaying balances: human_readable = raw_amount ÷ 10^token_decimals
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | Yes | ||
tokenId | Yes |