zora_get_coins
Retrieve coin data for multiple collections by specifying addresses and chain IDs to analyze Zora Coins on Base mainnet.
Instructions
Batch fetch coins by address and chainId.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coins | Yes |
Implementation Reference
- src/index.ts:117-138 (registration)Registration of the 'zora_get_coins' MCP tool, including schema and handler.server.registerTool( "zora_get_coins", { title: "Get multiple coins", description: "Batch fetch coins by address and chainId.", inputSchema: { coins: z .array( z.object({ collectionAddress: z.string(), chainId: z.number().default(DEFAULT_CHAIN.id), }) ) .min(1), }, }, async ({ coins }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getCoins({ coins }); return { content: [{ type: "text", text: json(resp) }] }; } );
- src/index.ts:133-137 (handler)Handler function that batches fetches coins using the CoinsSDK.getCoins method and returns the JSON-formatted response.async ({ coins }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getCoins({ coins }); return { content: [{ type: "text", text: json(resp) }] }; }
- src/index.ts:122-131 (schema)Zod input schema validating an array of coin objects with collectionAddress and optional chainId.inputSchema: { coins: z .array( z.object({ collectionAddress: z.string(), chainId: z.number().default(DEFAULT_CHAIN.id), }) ) .min(1), },