list_supported_chains
Retrieve all supported blockchain networks and their configurations for cross-chain trading operations on Paloma DEX.
Instructions
List all supported chains with their configurations.
Returns:
JSON string with all supported chain information.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- padex.py:650-676 (handler)The main handler function for the 'list_supported_chains' tool. It iterates over CHAIN_CONFIGS to build and return a JSON dictionary of supported chain configurations including RPC URLs, explorers, and contract availability flags.@mcp.tool() async def list_supported_chains(ctx: Context) -> str: """List all supported chains with their configurations. Returns: JSON string with all supported chain information. """ try: chains_info = {} for chain_id, config in CHAIN_CONFIGS.items(): chains_info[chain_id] = { "chain_id": config.chain_id, "name": config.name, "rpc_url": config.rpc_url, "explorer_url": config.explorer_url, "has_pusd_token": bool(config.pusd_token), "has_pusd_connector": bool(config.pusd_connector), "has_etf_connector": bool(config.etf_connector) } return json.dumps(chains_info, indent=2) except Exception as e: logger.error(f"Error listing chains: {e}") return f"Error listing chains: {str(e)}"