zora_get_profile_balances
Retrieve coin balances for a wallet or handle on the Zora Coins ecosystem. Use this tool to view token holdings and track portfolio data on Base mainnet.
Instructions
List coin balances for a wallet or handle.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | ||
| count | No | ||
| after | No |
Implementation Reference
- src/index.ts:259-263 (handler)The handler function for the zora_get_profile_balances tool. It takes identifier, after, and count parameters, calls CoinsSDK.getProfileBalances, and returns the response as JSON text.async ({ identifier, after, count }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getProfileBalances({ identifier, after, count }); return { content: [{ type: "text", text: json(resp) }] }; }
- src/index.ts:253-257 (schema)Input schema using Zod for validating the tool parameters: identifier (string), count (optional number 1-100), after (optional string).inputSchema: { identifier: z.string(), count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), },
- src/index.ts:248-264 (registration)Registration of the zora_get_profile_balances tool with server.registerTool, specifying title, description, inputSchema, and the handler function.server.registerTool( "zora_get_profile_balances", { title: "Get profile balances", description: "List coin balances for a wallet or handle.", inputSchema: { identifier: z.string(), count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), }, }, async ({ identifier, after, count }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getProfileBalances({ identifier, after, count }); return { content: [{ type: "text", text: json(resp) }] }; } );