# NFT Data Hub (Lightyear) > A CryptoPunks-focused NFT analytics service exposed as an MCP server. > Combines on-chain event indexing (sales, listings, transfers, wraps, > lending) with derived analytics (wallet P&L, floor listings, trait > comps, accumulation trends, lending stats). 30 tools. CryptoPunks, > Wrapped CryptoPunks, CryptoPunks721. This file is written in [llms.txt](https://llmstxt.org/) style so that LLM agents can read it before calling any tools and quickly understand what the service offers and how to use it effectively. ## MCP endpoint - **Streamable HTTP**: `https://data.lightyear.build/mcp` - **Legacy SSE alias**: `https://data.lightyear.build/sse` - **Health**: `https://data.lightyear.build/health` No authentication. CORS is open. Sessions are stateless — each request spins up a fresh transport. ## Supported collections | Name | Contract | |---|---| | CryptoPunks (native) | `0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb` | | Wrapped CryptoPunks | `0xb7f7f6c52f2e2fdb1963eab30438024864c313f6` | | CryptoPunks721 | `0x000000000000003607fce1ac9e043a86675c5c2f` | Call `get_supported_collections` to fetch the authoritative list at runtime. ## Tools ### Collection & token basics - **`get_supported_collections`** — list collections this hub indexes. - **`get_collection`** — collection-level stats, floor listings, top bids. - **`get_item`** — one token: metadata, listings, bids, recent sales. - **`get_items_batch`** — same as `get_item` but up to 20 tokens per call. - **`search_by_traits`** — find token IDs matching trait filters (e.g. `type=Male, accessory=Pipe`). ### Market activity - **`get_events`** — sales, listings, bids, transfers, mints, cancels, for a collection or one token. Default excludes suspicious fills (flashloan/wash_trade/self_trade) — pass `excludeTags=[]` to see everything. - **`get_top_buyers`** — most active buyers for a collection, optionally in a date range. Each row carries `entityType` and `label` so you can tell infra contracts (wrappers/vaults) from real buyers — **not** filtered by default. - **`get_top_trading_pairs`** — which two wallets trade with each other most. Both ends of the pair are tagged with `fromEntityType` / `toEntityType` so infra-to-infra pairs can be filtered client-side. - **`get_volume_history`** — volume bucketed by day/month/year. - **`get_floor_history`** — historical floor price time series (day/week/month). Each point carries floorEth, floorUsd, ethUsdPrice (implied from sales), and saleCount. Days with no sales are omitted. Sale-derived — does not capture ask-side-only floor days. - **`get_accumulation_trends`** — net accumulation (buys − sells) over a time window. Unlike `get_top_buyers`, reveals true accumulators (not wash traders). Infrastructure contracts (wrappers, vaults, lending pools) are excluded by default — pass `excludeContracts=false` to include them. Wallets with `currentHoldings=0` are excluded by default — pass `includeZeroHoldings=true` to see wallets that bought then transferred out. - **`get_market_depth`** — bid/ask distribution across price levels. Bid side currently covers on-chain orders only; off-chain EIP-712 bid-book integration (bids.cryptopunks.app) is implemented but disabled pending `BIDS_API_KEY` — see issue #124. `bidSource` field surfaces the source path (`db_orders` for every collection today). For live CryptoPunks bid data, call the CryptoPunks MCP directly. - **`get_comparable_sales`** — "what did similar punks sell for" — filter by traits, date range, exclude suspicious fills. Pass `tokenId` without `traits` to auto-infer traits from the token's attributes. For rare trait combos (Zombie / Alien / specific combos), the 6-month default window **auto-expands** to 12mo → 24mo → all-time until at least `minResults` comps are found. Response includes a `window` object with the range actually used and `expanded: true` if widened. - **`get_days_on_market`** — avg/median/p90 time-to-sale split into `listingSales` (seller listed, buyer hit ask) vs `bidSales` (buyer bid, seller accepted). Includes a `coverage` section with total sales in the window and the match rate so biased samples are obvious. - **`get_dormancy`** — token holding duration, summary or per-token list. - **`get_floor_listings_enriched`** — cheapest listings with traits, last sale, holder history in one call. ### Wallet analytics - **`get_wallet_profile`** — holdings + buy/sell activity, optionally filtered by collection. **Set `resolveEntity=true`** to merge the wallet with any Stash Factory proxies it deployed (or hop from a stash address → its deployer). Internal transfers between members of the entity are excluded from buy/sell counts. - **`get_most_valuable_wallets`** — rank holders by portfolio value (count × floor). Set `attribution='depositor'` to rewrite Gondi lending-vault holdings back to the borrower — useful for finding real collectors who have their punks as collateral. - **`get_wallet_pnl`** — realized + unrealized P&L per wallet, with suspicious fills and known infra contracts filtered out by default. More actionable than `get_most_profitable_traders`. - **`get_most_profitable_traders`** — realized P&L only. **Set `resolveEntity=true`** to collapse Stash Factory proxies into their deployer EOA — phantom 0-P&L stash rows drop out of the ranking. - **`get_trade_pnl`** — per-trade realized P&L. Each row = one closed trade (buy → sell) with ETH + USD prices, hold duration, and the realized gain/loss. Pass `wallet` to scope to one trader, or `sort=loss` for biggest losses. - **`get_biggest_trades`** — leaderboard of largest single-trade wins or losses. Default filter: minAbsEth=5 and excludeClaimBasis=true. - **`get_address_entity`** — classify an address as `eoa` / `stash` / `wrapper` / `vault` / `lending` / `marketplace_router` / `strategy` / `claimer` / `unknown_contract`. Backed by a seed list, on-chain stash factory events, and on-demand `eth_getCode`. For stashes, `metadata.deployer` resolves back to the owning EOA. - **`get_entity_profile`** — given any wallet, returns the manually-verified multi-wallet entity cluster it belongs to, or null. Clusters are hand-curated and shipped via code (never auto-learned), so the data is pollution-free. Seeded with SethS (7 wallets, ~1,011 CryptoPunks claims) and Larva Labs (original deployer, 1,020 claims). - **`list_entities`** — list every known entity cluster. - **`get_funding_source`** — first wallet that sent ETH to a given address. Wallets sharing a funder are likely the same operator (entity resolution). ### CryptoPunks-specific - **`get_punk_state`** — one punk: current owner, wrap status, attributes, last sale, active listing, active bid. - **`get_punk_provenance`** — full ownership history from 2017 claim to today, including every transfer/sale/wrap/unwrap. - **`get_punk_wrap_status`** — is this punk native / wrapped-legacy / wrapped-721, plus wrap history. - **`get_original_holders`** — historical V1 claim record: every punk a wallet claimed in June 2017 (not filtered by current ownership). Each entry carries `currentlyHeld`. Pass `wallet` to scope to one address and get `totalOriginalClaims / stillHeld / retentionRate` metrics directly. - **`get_claims_by_wallet`** — every punk a wallet originally claimed in June 2017, with current owner of each. - **`get_top_claimers`** — leaderboard of wallets by original-claim count, with `stillHeld` / `sold` / `transferred` breakdown. - **`get_connected_wallets`** — wallets that exchanged punks with the target via free (non-sale) transfers, as a consolidation / same-entity signal. ### Gondi V3 lending - **`get_punk_loans`** — loan history for one punk. Auto-targets WPUNKS (Gondi only accepts wrapped). - **`get_active_loans`** — currently-active Gondi loans, sorted by principal desc. Passing the native CryptoPunks contract auto-resolves to Wrapped CryptoPunks (Gondi only accepts wrapped). - **`get_lending_volume_history`** — new / repaid / foreclosed loans and avg APR over time, bucketed by day/week/month. Native CryptoPunks contract auto-resolves to wrapped. - **`get_collection_lending_stats`** — snapshot per collection: % supply collateralized, outstanding principal, avg APR, top borrowers & lenders. Native CryptoPunks contract auto-resolves to wrapped. - **`get_lender_pnl`** — lenders ranked by P&L: principal lent, outstanding, interest earned, foreclosure rate, weighted-avg APR. Tranche-aware (multi-source loans). Native CryptoPunks contract auto-resolves to wrapped. - **`get_wallet_loans`** — a wallet's borrower / lender activity on Gondi. ## Data quality notes - **Suspicious fills** (flashloan, wash_trade, self_trade, zero_value, misprice) are excluded from P&L, accumulation, leaderboard, and comparable-sales endpoints by default. Pass `excludeTags=[]` or use the raw `get_events` to see them. The `misprice` tag is manually applied to obvious single-transaction mispricings that slipped past the upstream tagger (e.g. a floor-tier punk "selling" for 24,000 ETH). - **Loan amounts** — loan objects carry `principal.amount` (human-readable amount in the currency's base unit) and `principal.currencySymbol` (`"WETH"` or `"USDC"`). Do NOT assume `amount` is in ETH for USDC loans — always check `currencySymbol`. The previous `principal.eth` field was renamed to `principal.amount` to avoid confusion. - **Provenance claims** — `get_punk_provenance` now returns two event types for the original claim: `type: "claim"` (V1 `getPunk()` by the actual claimer, from v1-claims.json) followed by `type: "airdrop"` (V2 zero-address transfer, which may show a different recipient if the punk changed hands between V1 deploy and V2 snapshot). Check `event.source === "v1_getPunk_parsed"` to identify the authoritative V1 claim. - **Type naming** — all endpoints now use the canonical numbering: `"Female 1"`, `"Female 2"`, `"Male 3"`, etc. (not `"Female (Dark)"` / `"Female (Medium)"` etc.). This is consistent with the on-chain attribute data and `get_punk_state`. - **Claim sales** — for the 10k original CryptoPunk claims in 2017, the cost basis is zero. `get_wallet_pnl` excludes these from realized P&L by default so claimers don't dominate. - **Entity resolution** — `get_address_entity` + the `resolveEntity` flag on wallet tools handle Stash Factory proxies. See issue [#30](https://github.com/Lightyear-Technologies-Limited/cultural-data-indexer/issues/30). - **Lending attribution** — when a punk sits in a Gondi vault as collateral, the on-chain `owner` is the vault but the economic owner is the borrower. Use `attribution='depositor'` on `get_most_valuable_wallets` to rewrite. ## Typical usage patterns 1. **"Who's accumulating CryptoPunks right now?"** — `get_accumulation_trends(days=30, minNet=2)` then `get_wallet_profile(wallet)` on the top names. 2. **"What's a fair price for a 3-trait Female punk?"** — `get_comparable_sales(traits={ type: "Female", traitCount: 3 }, startDays: 180)`. 3. **"Is Gondi lending growing?"** — `get_lending_volume_history(interval="week")`. 4. **"Who are the biggest CryptoPunks collectors?"** — `get_most_valuable_wallets(attribution="depositor")` to include collectors whose punks sit in Gondi as collateral. 5. **"Did this wallet buy this punk via a stash wrapper?"** — `get_punk_provenance(punkId)` then `get_address_entity` on any `to` address that looks like a contract. 6. **"Who really owns this stash?"** — `get_address_entity(stashAddress)` → `metadata.deployer`. ## Indexing scope - **Chain**: Ethereum mainnet. - **Marketplaces**: the full set Reservoir supports (Seaport, Blur, LooksRare, X2Y2, CryptoPunks native, etc). - **Lending**: Gondi V3.0 + V3.1 Multi Source Loan contracts, with per-tranche lender attribution and refinance chain tracking. - **Entity linking**: Stash Factory deployments (per-user minimal-proxy vault deployments, mapped back to the deployer EOA). ## Source https://github.com/Lightyear-Technologies-Limited/cultural-data-indexer