get_token_metadata
Retrieve ERC-20 token metadata including name, symbol, decimals, and total supply by providing the contract address and blockchain network.
Instructions
Get metadata for any ERC-20 token including name, symbol, decimals, and total supply.
Args: token_address: The token contract address (0x...) chain: Blockchain network. Options: ethereum, base, polygon, bsc, arbitrum, optimism
Returns: Token metadata including name, symbol, decimals, total supply.
Price: $0.10 (FIRST CALL FREE for new users!)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_address | Yes | ||
| chain | No | ethereum |
Implementation Reference
- coinrailz_mcp/__init__.py:238-254 (handler)The implementation of the 'get_token_metadata' tool handler in the MCP framework.
@mcp.tool() async def get_token_metadata(token_address: str, chain: str = "ethereum") -> str: """ Get metadata for any ERC-20 token including name, symbol, decimals, and total supply. Args: token_address: The token contract address (0x...) chain: Blockchain network. Options: ethereum, base, polygon, bsc, arbitrum, optimism Returns: Token metadata including name, symbol, decimals, total supply. Price: $0.10 (FIRST CALL FREE for new users!) """ payload = {"tokenAddress": token_address, "chain": chain} result = await call_coinrailz_service("token-metadata", payload) return json.dumps(result, indent=2)