{"openapi":"3.1.0","info":{"title":"Hullwright API","version":"0.1.0","description":"Read-only API (plus POST /api/kits/preview, which runs the Bay dock-hands and stores nothing). Scan = Clearance (Pons V2 factory tokens on Robinhood Chain mainnet) + Registry (RDAP). Not audited, not financial or legal advice."},"servers":[{"url":"http://www.hullwright.live"}],"paths":{"/api/stats":{"get":{"summary":"Index summary + Berthed numbers: factory index (tokens indexed, indexedToBlock, age, lastError) and HullwrightLog berths","description":"chain.berths / chain.berthFeesWei / chain.uniqueBerthers count every indexed Berthed event (berths matches berthCount() on the contract). chain.organic.* leaves out labelled test wallets; testWalletRunsExcluded is how many berths that removes. latestBerths = newest 20 events {hash, feeWei, at (unix s), tx, block, isTestWallet, label, explorer}; test-wallet berths are labelled, not hidden. block = last block the Berthed index has scanned.","responses":{"200":{"description":"ok"}}}},"/api/scan":{"get":{"summary":"Clearance (on-chain) + Registry (RDAP) for one name","description":"Clearance rule: exact = equal after normalize (NFKC, lowercase, keep only a-z0-9) against token name or symbol; similar = Levenshtein <= 0/1/2 for normalized query length <=3/4-5/>=6, or the shorter string (>=4 chars) is a substring of the longer. clearance is \"unavailable\" until the index has been built. registry is null when tld is omitted.","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"},"description":"coin name / ticker / domain label"},{"name":"tld","in":"query","required":false,"schema":{"type":"string"},"description":"domain TLD, e.g. com"}],"responses":{"200":{"description":"{ clearance: {...}, registry: {...} | null }"},"400":{"description":"invalid input"}}}},"/api/kits/preview":{"post":{"summary":"Bay: run the dock-hands for one idea (Rigger + Clerk via OpenRouter, Scan per proposal, Painter template, Inspector checklist, kitHash)","description":"Rigger and Clerk share one OpenRouter call. Every proposal's name and ticker is run through Clearance; `clearance` is the worse of the two. Painter returns template metadata only (no AI image). Inspector is a fixed 10-point checklist (ok: true | false | null = for you to confirm). kitHash = keccak256(utf8(canonical JSON of `kit`)): object keys sorted, no whitespace, arrays in order; `kitJson` is that exact string. Quota: 5 kits per IP per UTC day, counted only when the model is called. Without OPENROUTER_API_KEY / OPENROUTER_MODEL the answer is HTTP 200 {status: 'not configured', message}. The idea is not stored.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["idea"],"properties":{"idea":{"type":"string","minLength":1,"maxLength":300}}}}}},"responses":{"200":{"description":"{status:'ok', kitHash, hashRule, kit, kitJson, names:[{name, ticker, clearance, nameScan, tickerScan}], description, poster, checklist, scanCoverage, quota, notes} | {status:'not configured', message}"},"400":{"description":"idea missing, longer than 300 characters, or body is not JSON"},"429":{"description":"{status:'quota exhausted', message, quota}"},"502":{"description":"{status:'error', message}: OpenRouter failed or returned an unusable shape"}}}},"/api/quota":{"get":{"summary":"Bay quota for the calling IP: {limit, used, remaining, resetsAt, key:'ip'}","responses":{"200":{"description":"ok"}}}},"/api/kits/{hash}":{"get":{"summary":"Kit metadata from HullwrightLog Berthed events (hash, sender, fee, time, block, tx, explorer links). Never kit contents.","description":"The earliest Berthed event for a hash is the record; berths lists every event for it (berthCount). isTestWallet / senderLabel mark labelled test wallets. Only blocks indexedFromBlock..indexedToBlock are covered: a newer berth is not found until the next index pass (about a minute).","parameters":[{"name":"hash","in":"path","required":true,"schema":{"type":"string"},"description":"0x + 64 hex"}],"responses":{"200":{"description":"{status:'berthed', kitHash, sender, isTestWallet, senderLabel, feeWei, timestamp, berthedAt, block, tx, logIndex, explorer:{tx, block, sender}, berthCount, berths:[...], contract, chainId, indexedFromBlock, indexedToBlock}"},"400":{"description":"hash is not 0x + 64 hex"},"404":{"description":"{status:'not found', berthed:false, note, indexedFromBlock, indexedToBlock}: no Berthed event for this hash in the indexed range"}}}},"/api/papers/{address}":{"get":{"summary":"$HLWG balance and share of supply. Answers status 'token not set' before T0.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"},"description":"wallet address"}],"responses":{"200":{"description":"ok / token not set"}}}},"/api/network":{"get":{"summary":"Chain id, latest block and RPC status for mainnet (index) and testnet","responses":{"200":{"description":"ok"}}}},"/mcp":{"post":{"summary":"MCP (streamable HTTP, stateless, read-only): ticker_clash, domain_clearance, kit_preview","responses":{"200":{"description":"JSON-RPC"}}}}}}