dexNetworksList
Access a comprehensive list of blockchain networks linked to unique CoinMarketCap IDs. Filter and sort networks by ID or name to streamline data retrieval and integration.
Instructions
Returns a list of all networks to unique CoinMarketCap ids.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aux | No | ||
| limit | No | ||
| sort | No | ||
| sort_dir | No | ||
| start | No |
Implementation Reference
- index.js:296-311 (registration)Registration of the 'dexNetworksList' tool using server.tool(), including the tool name, description, input schema with optional parameters (start, limit, sort, sort_dir, aux), and an inline asynchronous handler function.server.tool("dexNetworksList", "Returns a list of all networks to unique CoinMarketCap ids.", { start: z.string().optional(), limit: z.string().optional(), sort: z.enum(['id', 'name']).optional(), sort_dir: z.enum(['desc', 'asc']).optional(), aux: z.string().optional() }, async (params) => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v4/dex/networks/list', params) return formatResponse(data) }) } )
- index.js:305-310 (handler)The handler function that executes the tool logic. It invokes handleEndpoint which makes an API request to the CoinMarketCap '/v4/dex/networks/list' endpoint with the provided params and formats the response using formatResponse.async (params) => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v4/dex/networks/list', params) return formatResponse(data) }) }
- index.js:298-304 (schema)Zod schema for input validation of dexNetworksList parameters: optional start, limit (strings), sort (enum: 'id' or 'name'), sort_dir (enum: 'desc' or 'asc'), and aux (string).{ start: z.string().optional(), limit: z.string().optional(), sort: z.enum(['id', 'name']).optional(), sort_dir: z.enum(['desc', 'asc']).optional(), aux: z.string().optional() },