Skip to main content
Glama
Deconstruct2021

cryptopunks-mcp-server

generate_batch_proofs

Generate Merkle proofs for multiple CryptoPunks simultaneously to verify ownership without wallet access, improving efficiency over single-proof methods.

Instructions

Generate Merkle proofs for multiple target punks within a set in a single request. Pure computation, no wallet required. More efficient than calling generate_merkle_proof repeatedly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
punk_indicesYesThe full set of punk indices in the Merkle tree
target_punk_indicesYesThe specific punks to generate proofs for
expected_rootNo

Implementation Reference

  • The handler function that executes the generate_batch_proofs tool by calling the API.
    case "generate_batch_proofs": {
      const result = await api.generateBatchProofs({
        punkIndices: args.punk_indices,
        targetPunkIndices: args.target_punk_indices,
        expectedRoot: args.expected_root,
      });
      return ok(result);
    }
  • The definition and input schema for the generate_batch_proofs tool.
    generate_batch_proofs: {
      description:
        "Generate Merkle proofs for multiple target punks within a set in a single request. Pure computation, no wallet required. More efficient than calling generate_merkle_proof repeatedly.",
      inputSchema: z.object({
        punk_indices: z.array(punkIndex).min(1).describe("The full set of punk indices in the Merkle tree"),
        target_punk_indices: z
          .array(punkIndex)
          .min(1)
          .describe("The specific punks to generate proofs for"),
        expected_root: z.string().optional(),
      }),
  • The API implementation that performs the backend request for generateBatchProofs.
    export async function generateBatchProofs(params: {
      punkIndices: number[];
      targetPunkIndices: number[];
      expectedRoot?: string;
    }) {
      return post(BIDS_BASE, "/api/v1/merkle/batch-proofs", params);
    }

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/Deconstruct2021/cryptopunks-mcp-server'

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