What problem does it solve?
Prevents silent contract breakages between CYPHER V3 backend routes and the frontend by validating that endpoints return the expected keys, shapes, and live values so bugs do not reach users unnoticed.
Core Features & Use Cases
- Schema contract assertions: checks required fields and types for BTC market, ordinals, runes, BRC-20, and fee endpoints.
- Real-data validation: detects mocked or hardcoded responses by asserting reasonable value ranges and content patterns.
- Performance monitoring: measures latency and flags slow or timing-out endpoints.
- Breaking-change detection: saves JSON snapshots and compares top-level keys to detect schema drift before deployments.
- Use Case: integrate into local testing or CI to fail pull requests that remove fields, introduce mock data, or degrade endpoint performance.
Quick Start
Run the API contract tester against a running CYPHER V3 instance at http://localhost:4444 to validate endpoints, schemas, and latency.