Skip to main content
Glama
Deconstruct2021

cryptopunks-mcp-server

verify_merkle_proof

Validate Merkle proofs for CryptoPunks ownership verification. Check proof integrity against specified root and punk index using pure computation.

Instructions

Verify that a Merkle proof is valid for a given punk index and Merkle root. Pure computation, no wallet required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
punk_indexYesCryptoPunk index (0–9999)
proofYesArray of proof hashes
rootYesThe Merkle root to verify against

Implementation Reference

  • Handler logic for verify_merkle_proof, which calls the api.verifyMerkleProof function.
    case "verify_merkle_proof": {
      const result = await api.verifyMerkleProof(
        args.punk_index,
        args.proof,
        args.root,
      );
      return ok(result);
    }
  • Definition and input schema for the verify_merkle_proof tool.
    verify_merkle_proof: {
      description:
        "Verify that a Merkle proof is valid for a given punk index and Merkle root. Pure computation, no wallet required.",
      inputSchema: z.object({
        punk_index: punkIndex,
        proof: z.array(z.string()).describe("Array of proof hashes"),
        root: z.string().describe("The Merkle root to verify against"),
      }),
    },
  • API helper function that sends the request to verify the Merkle proof.
    export async function verifyMerkleProof(
      punkIndex: number,
      proof: string[],
      root: string,
    ) {
      return post(BIDS_BASE, "/api/v1/merkle/verify", { punkIndex, proof, root });
    }

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