get_token_info
Retrieve detailed token information including socials, websites, and descriptions for DeFi trading analysis and decision-making.
Instructions
Get detailed token information including socials, websites, and description
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | Network ID (e.g., 'eth', 'bsc', 'polygon_pos') | |
| address | Yes | Token contract address |
Implementation Reference
- Core implementation handler that performs the actual HTTP fetch to CoinGecko's onchain API endpoint for detailed token information.
async getTokenInfo(network, address) { try { const url = `${this.baseUrl}/networks/${network}/tokens/${address}/info`; const response = await fetch(url, { headers: { 'x-cg-demo-api-key': this.apiKey } }); if (!response.ok) { throw new Error(`HTTP ${response.status}: ${response.statusText}`); } return await response.json(); } catch (error) { throw new Error(`Failed to get token info: ${error.message}`); } }