API
Public endpoints. Read-only, rate limited, no keys.
| Method | Path | What it does |
|---|---|---|
| POST | /api/verify-onchain | Body {"a":[x,y],"b":[[x1,x0],[y1,y0]],"c":[x,y],"signals":[8 decimals]} (Solidity order). Runs ZkrynSealVerifier.verifyProof on Robinhood Chain via eth_call (the deployed verifier, or its bytecode under a code override). 20 per minute per network. The body has no amount field; none exists. |
| GET | /api/rules | Every rule and seal from ZkrynGateBook's events, whole history, gaps reported. |
| POST | /api/dryrun | createRule as an eth_call (from, asset, threshold, issuerAx, issuerAy, notBefore, notAfter, maxAge, label): the rule number it would get, or the refusal, plus the calldata. Nothing is sent. |
| GET | /api/proof | Chain id from the RPC, latest block, contract addresses with code, event counts, circuit file hashes and setup facts, commit. |
| GET | /api/health | Short liveness answer: chain id and commit. |
| GET | /api/chain | Head block, gas price, Chainlink ETH/USD, contract code and the rule assets' live identity. |
| POST | /api/rpc | Read-only JSON-RPC relay for this site's own calls (allowlisted targets, gas cap, budget per network). |
| GET | /zk/manifest.json | Circuit, Powers of Tau source and hash, contribution hash, sha256 of every prover file. |
| GET | /llms.txt | Plain-text summary for agents and crawlers. |
A verification link is https://zkryn.xyz/verify/<code>, where the code is base64url of 578 bytes: version, the proof (8 words), the eight public signals and a 65-byte binding signature. Decode it with src/lib/zk/pack.ts.