get_token_orders
Retrieve orders paid for a specific token by providing the chain ID and token address, enabling detailed transaction insights on DEX platforms.
Instructions
Check orders paid for a specific token
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | Chain ID (e.g., "solana") | |
| tokenAddress | Yes | Token address |
Implementation Reference
- src/services/dexscreener.ts:109-114 (handler)The core handler function that executes the tool logic by fetching token orders from the DexScreener API endpoint `/orders/v1/{chainId}/{tokenAddress}` with rate limiting.async getTokenOrders({ chainId, tokenAddress }: OrderParams): Promise<TokenOrder[]> { return this.fetch<TokenOrder[]>( `/orders/v1/${chainId}/${tokenAddress}`, tokenRateLimiter ); }
- src/index.ts:121-137 (schema)Input schema definition for the get_token_orders tool, specifying chainId and tokenAddress as required string parameters.get_token_orders: { description: 'Check orders paid for a specific token', inputSchema: { type: 'object', properties: { chainId: { type: 'string', description: 'Chain ID (e.g., "solana")', }, tokenAddress: { type: 'string', description: 'Token address', }, }, required: ['chainId', 'tokenAddress'], }, },
- src/index.ts:319-323 (registration)Tool dispatch/registration in the MCP server's CallToolRequest handler switch statement, calling the dexService.getTokenOrders method.case 'get_token_orders': { const args = request.params.arguments as { chainId: string; tokenAddress: string }; result = await this.dexService.getTokenOrders(args); break; }