{
  "$comment": "GENERATED FROM api/_tools/<slug>/route.mjs — do not edit by hand",
  "type": "https://eips.ethereum.org/EIPS/eip-8257#tool-manifest-v1",
  "name": "nft-holder-overlap",
  "description": "Computes holder overlap between two OpenSea NFT collections. Returns the number of wallets that hold both, overlap as a percentage of the smaller holder set, the Jaccard similarity index, and the top-25 shared wallets by combined holdings. Useful for cross-marketing analysis, airdrop targeting, and community overlap research.",
  "endpoint": "https://www.clawbots.org/api/tools/nft-holder-overlap",
  "inputs": {
    "type": "object",
    "properties": {
      "collectionA": {
        "type": "string",
        "description": "First OpenSea collection slug (lowercase a-z, 0-9, dash). E.g. 'normies-art'."
      },
      "collectionB": {
        "type": "string",
        "description": "Second OpenSea collection slug to compare against. Must differ from collectionA."
      },
      "maxPages": {
        "type": "integer",
        "description": "Max OpenSea listing pages to walk per collection (default 10, max 30). Higher = more accurate but slower.",
        "default": 10
      }
    },
    "required": [
      "collectionA",
      "collectionB"
    ],
    "additionalProperties": false
  },
  "outputs": {
    "type": "object",
    "properties": {
      "collectionA": {
        "type": "string",
        "description": "First collection slug (echoed)"
      },
      "collectionB": {
        "type": "string",
        "description": "Second collection slug (echoed)"
      },
      "holdersA": {
        "type": "integer",
        "description": "Distinct holder count for collectionA (within scanned pages)"
      },
      "holdersB": {
        "type": "integer",
        "description": "Distinct holder count for collectionB (within scanned pages)"
      },
      "overlapCount": {
        "type": "integer",
        "description": "Wallets holding at least one token in each collection"
      },
      "overlapPct": {
        "type": "number",
        "description": "overlapCount / min(holdersA, holdersB) × 100"
      },
      "jaccardIndex": {
        "type": "number",
        "description": "|A ∩ B| / |A ∪ B|, range 0–1"
      },
      "topOverlapWallets": {
        "type": "array",
        "description": "Up to 25 shared wallets, sorted by combined holdings desc",
        "items": {
          "type": "object",
          "properties": {
            "address": {
              "type": "string"
            },
            "holdingsInA": {
              "type": "integer"
            },
            "holdingsInB": {
              "type": "integer"
            }
          },
          "required": [
            "address",
            "holdingsInA",
            "holdingsInB"
          ]
        }
      },
      "pagesScannedA": {
        "type": "integer",
        "description": "Pages walked for collectionA"
      },
      "pagesScannedB": {
        "type": "integer",
        "description": "Pages walked for collectionB"
      },
      "note": {
        "type": [
          "string",
          "null"
        ],
        "description": "Warning when maxPages limit was hit and results may be incomplete"
      },
      "fetchedAt": {
        "type": "string",
        "format": "date-time"
      }
    },
    "required": [
      "collectionA",
      "collectionB",
      "holdersA",
      "holdersB",
      "overlapCount",
      "overlapPct",
      "jaccardIndex",
      "topOverlapWallets",
      "pagesScannedA",
      "pagesScannedB",
      "fetchedAt"
    ]
  },
  "creatorAddress": "0xef2cc7d15d3421629f93ffa39727f14179f31c75",
  "tags": [
    "opensea",
    "nft",
    "holders",
    "overlap",
    "analysis",
    "airdrop",
    "community"
  ],
  "pricing": [
    {
      "amount": "0.05",
      "asset": "USDC",
      "recipient": "0xef2cc7d15d3421629f93ffa39727f14179f31c75",
      "protocol": "x402"
    }
  ],
  "authentication": [
    {
      "type": "siwe",
      "description": "Sign In With Ethereum. Holders of the Axiom Tool Pass NFT get free unlimited access. Sign a SIWE message proving wallet ownership; the server verifies your wallet holds the pass on-chain.",
      "header": "Authorization: SIWE <base64url(message)>.<0xsignature>",
      "passContract": "0xfc9ce3990f85fA1A3a0eE51a710642396a6Cad82",
      "chain": "base",
      "chainId": 8453,
      "collection": "https://opensea.io/collection/axiom-tool-pass"
    },
    {
      "type": "x402",
      "description": "Pay per call in USDC on Base via the x402 protocol. No account or API key needed.",
      "header": "x-payment: <x402 authorization>"
    }
  ],
  "onChain": {
    "registry": "0x265BB2DBFC0A8165C9A1941Eb1372F349baD2cf1",
    "chainId": 8453,
    "toolId": 61
  }
}
