get_coingecko_networks
Retrieve supported blockchain networks from CoinGecko/GeckoTerminal for crypto trading analysis and portfolio management across multiple chains.
Instructions
Get list of supported networks on CoinGecko/GeckoTerminal
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_coingecko_networks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (optional, default: 1) |
Implementation Reference
- Supporting utility in CoinGeckoApiService that makes the actual HTTP request to the CoinGecko /onchain/networks endpoint with pagination.
async getNetworks(page = 1) { try { const queryParams = new URLSearchParams(); if (page) queryParams.append('page', page); const url = `${this.baseUrl}/networks${queryParams.toString() ? '?' + queryParams.toString() : ''}`; 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 networks: ${error.message}`); } }