CHAIN_LIST
Retrieve available blockchain networks for decentralized exchange operations, enabling users to identify supported chains for token swaps and transactions.
Instructions
Get chain list
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/chain.ts:6-11 (handler)The handler function for CHAIN_LIST tool. Returns a JSON-formatted list of hardcoded supported chain names.export const chainList = async () => { const chains = [ 'bsc', 'eth', 'polygon', 'fantom', 'avax', 'arbitrum', 'xdai', 'moonriver', 'optimism', 'aurora', 'cronos', 'harmony', 'aptos', 'near', 'metis', 'kava', 'celo', 'klaytn', 'zksync', 'polygon_zkevm', 'linea', 'telos', 'scroll', 'base', 'mantle', 'opbnb', 'manta', 'blast', 'mode', 'merlin', 'rootstock', 'sei', 'gravity', 'ape', 'sonic', 'sui', 'bera', 'uni', 'flare', 'monad', 'swell', 'hyperevm', 'plume', 'tac', 'plasma' ]; return JSON.stringify(chains, null, 2); };
- src/tools/index.ts:5-9 (registration)Registration of the CHAIN_LIST tool in the tools export object, specifying name, description, and execute handler.chainList: { name: "CHAIN_LIST", description: "Get chain list", execute: chainExecute.chainList },