zora_get_coin_holders
Retrieve a list of coin holders with their balances and profile information to analyze ownership distribution and identify key stakeholders.
Instructions
List holders of a coin with balances and profile data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| chainId | No | ||
| after | No | ||
| count | No |
Implementation Reference
- src/index.ts:152-161 (handler)Handler function that executes the tool logic by calling CoinsSDK.getCoinHolders with provided parameters and returning the JSON-formatted response.async ({ address, chainId, after, count }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getCoinHolders({ address, chainId, after, count, }); return { content: [{ type: "text", text: json(resp) }] }; }
- src/index.ts:145-150 (schema)Zod input schema defining parameters for the tool: address (required string), chainId (optional number with default), after (optional string), count (optional number between 1-100).inputSchema: { address: z.string(), chainId: z.number().default(DEFAULT_CHAIN.id), after: z.string().optional(), count: z.number().int().min(1).max(100).optional(), },
- src/index.ts:140-162 (registration)Registration of the 'zora_get_coin_holders' tool on the MCP server, including title, description, input schema, and handler function.server.registerTool( "zora_get_coin_holders", { title: "Get coin holders", description: "List holders of a coin with balances and profile data.", inputSchema: { address: z.string(), chainId: z.number().default(DEFAULT_CHAIN.id), after: z.string().optional(), count: z.number().int().min(1).max(100).optional(), }, }, async ({ address, chainId, after, count }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getCoinHolders({ address, chainId, after, count, }); return { content: [{ type: "text", text: json(resp) }] }; } );