Skip to main content
Glama
openSVM
by openSVM

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
NameRequiredDescriptionDefault
chainIdYesChain ID (e.g., "solana")
tokenAddressYesToken address

Implementation Reference

  • 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 ); }
  • 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; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/openSVM/dexscreener-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server