# Zhen > Provenance and risk verification layer for TapeOut circuits and processors on X Layer (Chain ID 196). Zhen traces every taped-out netlist back to its public on-chain origin, separates PoD reference-cost designs and common starter templates from duplicates, checks FabX Proof-of-Design (PoD) tie-loss risk, and verifies processor deployers. Every response includes the X Layer block height (`checkedAtBlock`), a canonical `verdictHash`, and explicit scope limits. ## Pricing & x402 Agent Payments - Status: Free during launch (all endpoints free while launch switch is off) - Web UI & verdict pages: Free for humans - `GET https://usezhen.xyz/api/v1/check`: 100 free checks/day per IP or `X-Wallet-Address`, then $0.005 USD₮0 (5000 base units) via OKX x402 on `eip155:196` (`0x779Ded0c9e1022225f8E0630b35a9b54bE713736`) - `GET https://usezhen.xyz/api/v1/deep-check`: $0.02 USD₮0 (20000 base units) via OKX x402 for live `ownerOf`, badge check, and EIP-712 signed receipt - Seller badges (`ZhenRegistry`): First 25 badges free (gas only), then 0.001 OKB - Watchlist alerts: Free within caps (10 watches/Telegram chat, 3 signed webhooks/address, open RSS/JSON feed); Pro alerts coming soon ## Endpoints - `GET https://usezhen.xyz/api/v1/check?name=1056.2.323` — Check by TapeOut dot-name (`.2.`) - `GET https://usezhen.xyz/api/v1/deep-check?name=1056.2.323` — Live-verified provenance check + EIP-712 signed receipt - `GET https://usezhen.xyz/api/v1/check?processor=0x87bfca3494aa228ff589ab9b642143a5e8c8f9a6&id=80` — Check by processor + circuit ID - `GET https://usezhen.xyz/api/v1/check?processor=0x00586a4c37039acbfc6ac135cadd49367abf390a` — Check a processor and deployer identity - `GET https://usezhen.xyz/api/v1/check?netlistId=0x...&fpHash=0x...&cost=351` — Check an untaped netlist hash without uploading raw bytes - `GET https://usezhen.xyz/api/v1/watch?targets=80.2.323,1056.2.323,task:100&format=json` — Open watchlist alerts feed (`format=json` or `format=rss`) - `POST https://usezhen.xyz/api/v1/webhooks` — Register up to 3 EIP-712 signed alert webhooks per address (`ZhenAlertWebhook/1/196`, headers `x-zhen-signature`, `x-zhen-signer`, `x-zhen-body-hash`, `x-zhen-timestamp`, `x-zhen-event-id`) - `GET https://usezhen.xyz/api/v1/badge/svg?processor=0x...&id=80` — Live SVG status shield from `ZhenRegistry` - `GET https://usezhen.xyz/status` — Live index height and alert sweep heartbeat - `GET https://usezhen.xyz/usage` — Public ledger of settled x402 checks and on-chain badges - `GET https://usezhen.xyz/openapi.json` — OpenAPI 3.1.0 schema - `GET https://usezhen.xyz/.well-known/agent.json` — Machine capability manifest (CORS enabled) ## Provenance Labels - `ORIGIN` (`info`, `level: clear`): First public tape-out of this netlist on X Layer. - `REFERENCE_DESIGN` (`info`, `level: clear`): Passing PoD design running at the task's published reference cost (`C = Cref`). - `COMMON_TEMPLATE` (`info`, `level: clear`): Starter or reference circuit shared across >= 10 wallets and >= 2 processors (or outside PoD). - `OWN_REMINT` (`info`, `level: clear`): The wallet holding the first public tape-out re-minted its own design; not a copy. - `TRIVIAL_DESIGN` (`info`, `level: clear`): 4 gates or fewer; too simple for a match to show copying. - `DUPLICATE` (`caution`): A different wallet taped out the same bytes first. Matches an earlier origin circuit (`data.originProcessor`, `data.originId`, `data.top2WalletSharePct`). - `POD_TIE_LOST` / `POD_NOT_BEST` / `POD_FAILS_VECTORS` (`caution`): FabX PoD economic warnings (equal-cost earlier tie, higher cost, or failing vectors). - `IMPERSONATES_KNOWN` (`danger`): Reserved strictly for processors reusing a known name (`FAB-Genisis`) from a different deployer wallet. ## Verify a verdict yourself (Merkle anchoring) - Each index snapshot has a Merkle root over the public verdict of every circuit and processor. Roots are posted to `ZhenAnchor` (`0xb29e3974d4819aa0907205077475449363a8c006`, eip155:196) with `anchor(root, snapshotBlock)`. Every posted root stays readable with `rootAt(snapshotBlock)`. - `GET https://usezhen.xyz/api/v1/check` adds `proof` (`subjectId`, `verdictHash`, `leaf`, sibling hashes, `root`, `snapshotBlock`) and `anchor` (`anchored`, `snapshotBlock`, `latestAnchoredBlock`) when the verdict is in the snapshot's tree. - Leaf: `keccak256(0x00 || subjectId || verdictHash)`. Node: `keccak256(0x01 || min(a,b) || max(a,b))`. `proof.verdictHash` hashes the public verdict, so you can recompute it from the response. - `anchor.anchored` is false for a snapshot whose root has not been posted yet; compare `latestAnchoredBlock`. A proof saved from an anchored snapshot keeps verifying against `rootAt(snapshotBlock)`. - Format and a copy-paste check: https://usezhen.xyz/docs/api#s5 ## Epistemic Limits (What Zhen Cannot See) - FabX PoD miners submit sealed `commitDesign` hashes before revealing. Unrevealed commitments cannot be checked until revealed on-chain. - Off-chain designs and circuits on non-X Layer chains are outside scope. ## Contracts & Source - Chain: X Layer mainnet (`eip155:196`) - `ZhenRegistry`: `0xba2B0feEce41f64cCbf2432c54C425eAdB2C9819` - `ZhenAnchor`: `0xb29e3974d4819aa0907205077475449363a8c006` - `ProcessorFactory`: `0x1f09daefa827f02cbb40967cc91b259763760761` - `FAB-Genisis`: `0x87bfca3494aa228ff589ab9b642143a5e8c8f9a6` - Source & MIT library (`@zhen/core`): https://github.com/bunnyyxtan/zhen