get_supported_chains
Retrieve available blockchain networks for decentralized finance trading operations, enabling AI agents to identify compatible platforms for market analysis and transaction execution.
Instructions
Get list of blockchain networks supported by Aggregator Protocol
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/services/agService.js:77-95 (helper)Supporting function in AgService that performs the HTTP request to the Aggregator API (/api/swap/chains) to retrieve the list of supported chains.
async getSupportedChains() { try { const response = await fetch(`${this.baseUrl}/api/swap/chains`); if (!response.ok) { throw new Error(`HTTP ${response.status}: ${response.statusText}`); } const data = await response.json(); if (!data.success) { throw new Error(data.error || 'API request failed'); } return data.data; } catch (error) { throw new Error(`Failed to get supported chains: ${error.message}`); } }