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
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": "CHAIN_LIST"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/chain.ts:6-11 (handler)The handler function that executes the CHAIN_LIST tool, returning a hardcoded JSON string of 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)The registration of the CHAIN_LIST tool in the tools export, linking to the handler and defining metadata.
chainList: { name: "CHAIN_LIST", description: "Get chain list", execute: chainExecute.chainList },