zora_explore_top_volume_24h
Discover the highest trading volume coins on Zora Coins in the last 24 hours to identify trending assets and analyze market activity.
Instructions
Coins with highest trading volume in last 24 hours.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| after | No |
Implementation Reference
- src/index.ts:297-302 (registration)Registration of the 'zora_explore_top_volume_24h' tool using the exploreTool helper. This sets up the tool name, title, description, input schema (pagination: after, count), and a thin handler wrapper that calls CoinsSDK.getCoinsTopVolume24h({ after, count }) and formats the JSON response.exploreTool( "zora_explore_top_volume_24h", // @ts-expect-error - TypeScript can't resolve barrel exports properly CoinsSDK.getCoinsTopVolume24h, "Top 24h volume", "Coins with highest trading volume in last 24 hours."
- src/index.ts:283-286 (handler)The handler function logic (shared via exploreTool) that executes the tool: calls the SDK function with pagination params and returns formatted JSON response.async ({ after, count }) => { const resp = await fn({ after, count }); return { content: [{ type: "text", text: json(resp) }] }; }
- src/index.ts:279-281 (schema)Input schema for the tool: optional pagination parameters (after cursor, count up to 100).count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), },
- src/index.ts:267-288 (helper)exploreTool helper function that standardizes registration of paginated explore tools, providing schema, handler wrapper, and delegating core logic to CoinsSDK functions.function exploreTool( name: string, fn: (args: { after?: string; count?: number }) => Promise<unknown>, title: string, description: string ) { server.registerTool( name, { title, description, inputSchema: { count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), }, }, async ({ after, count }) => { const resp = await fn({ after, count }); return { content: [{ type: "text", text: json(resp) }] }; } ); }
- src/index.ts:64-70 (helper)Utility function to JSON stringify responses, handling bigint conversion for blockchain data.function json(data: unknown): string { return JSON.stringify( data, (_k, v) => (typeof v === "bigint" ? v.toString() : v), 2 ); }