Skip to main content
Glama

zora_update_payout_recipient

Change the payout recipient address for creator earnings on Zora Coins. Requires owner wallet authorization to update the destination for coin revenue distribution.

Instructions

Change the payout recipient address (creator earnings). Requires owner wallet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinYes
newPayoutRecipientYes

Implementation Reference

  • Handler function that ensures a wallet is configured, calls CoinsSDK.updatePayoutRecipient with the provided coin and new payout recipient, and returns the result as JSON text content.
    async ({ coin, newPayoutRecipient }) => { ensureWallet(); const result = await CoinsSDK.updatePayoutRecipient( { coin: coin as any, newPayoutRecipient: newPayoutRecipient as any }, walletClient!, publicClient ); return { content: [{ type: "text", text: json(result) }] }; }
  • Zod input schema defining required string parameters 'coin' and 'newPayoutRecipient'.
    coin: z.string().min(1), newPayoutRecipient: z.string().min(1), },
  • src/index.ts:410-430 (registration)
    MCP server tool registration including name, metadata, schema, and inline handler function.
    server.registerTool( "zora_update_payout_recipient", { title: "Update payout recipient", description: "Change the payout recipient address (creator earnings). Requires owner wallet.", inputSchema: { coin: z.string().min(1), newPayoutRecipient: z.string().min(1), }, }, async ({ coin, newPayoutRecipient }) => { ensureWallet(); const result = await CoinsSDK.updatePayoutRecipient( { coin: coin as any, newPayoutRecipient: newPayoutRecipient as any }, walletClient!, publicClient ); return { content: [{ type: "text", text: json(result) }] }; } );
  • Helper function that checks if walletClient and account are configured, throwing an error if not for write operations.
    function ensureWallet() { if (!walletClient || !account) { throw new Error( "Write operation requires PRIVATE_KEY and BASE_RPC_URL. Set them in your environment and restart the server." ); } }
  • Helper function to stringify data to JSON, handling bigint conversion to string.
    function json(data: unknown): string { return JSON.stringify( data, (_k, v) => (typeof v === "bigint" ? v.toString() : v), 2 ); }

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/r4topunk/zora-coins-mcp-server'

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