Skip to main content
Glama
Deconstruct2021

cryptopunks-mcp-server

get_account

Retrieve comprehensive CryptoPunks portfolio data for any Ethereum wallet or ENS name, including owned punks, sale listings, bid activity, trading history, and performance metrics.

Instructions

Get comprehensive portfolio data for any Ethereum wallet or ENS name: owned punks, punks for sale, active bids placed and received, full buy/sell history, realized PnL, and total trading volume. This is the most information-dense endpoint in the API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesEthereum address (0x…) or ENS name (e.g. collector.eth)
owned_onlyNoIf true, return only owned punks and skip history

Implementation Reference

  • The actual implementation of getAccount which calls the upstream API.
    export async function getAccount(
      address: string,
      options?: {
        owned?: boolean;
        salesLimit?: number;
        purchasesLimit?: number;
      },
    ) {
      const params: Record<string, string> = {};
      if (options?.owned) params.owned = "true";
      if (options?.salesLimit) params.salesLimit = String(options.salesLimit);
      if (options?.purchasesLimit) params.purchasesLimit = String(options.purchasesLimit);
      return get(DATA_BASE, `/api/account/${address}`, params);
    }
  • The schema definition for get_account tool.
    get_account: {
      description:
        "Get comprehensive portfolio data for any Ethereum wallet or ENS name: owned punks, punks for sale, active bids placed and received, full buy/sell history, realized PnL, and total trading volume. This is the most information-dense endpoint in the API.",
      inputSchema: z.object({
        address: ethAddress,
        owned_only: z
          .boolean()
          .optional()
          .default(false)
          .describe("If true, return only owned punks and skip history"),
      }),
    },
  • The registration/handler switch case that maps the tool call to the api.getAccount function.
    case "get_account": {
      const result = await api.getAccount(args.address, {
        owned: args.owned_only ?? false,
      });
      return ok(result);

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