What the API is for
A public JSON API for Lean 4 formal-verification tools on Solana. No API key needed.
npx lean-solana init full
Check its kernel proof
Each Core library returns its
GET /v1/tools/svm-model/verifylake buildresult, its#print axiomsaudit and itssorrycount.Scaffold a project that compiles
One call returns a Lake project pinned to the checked sources.
GET /v1/init?template=full
Endpoints
Most are GET requests that return JSON. The firewall check and MCP take a POST body. Base URL
- /v1The index: toolchain, totals, registry digest and template names.
- /v1/toolsEvery tool with its manifest. Filter with
q,tierorcategory. - /v1/tools/:slugOne tool: summary, licence, Lean toolchain, install commands and changelog.
- /v1/tools/:slug/verifyThe kernel check: build result, theorem count, axioms,
sorrycount and SHA-256 hashes. - /v1/init?template=A starter Lake project as a list of files, pinned to Core source hashes.
- /v1/diff/:slugChanges between two versions, with a breaking flag and migration notes.
- /v1/schemaThe JSON Schema for a tool manifest, with the acceptance rules.
- /v1/mint/:addressLive SPL Token and Token-2022 mint facts and risk flags, read over RPC by a JS mirror of MintProof. Add
includeLean=1for a certificate you compile withlean. - /v1/programsSubmitted program attestations. Each entry carries ciReproduced true or false.
- /v1/programs/:programIdOtterSec verified-build status, on-chain upgrade authority, and whether a CI-reproduced proof matches the live bytecode.
- /v1/programs/:programId/badge.svgStatus badge naming the proven scope and whether the program is upgradeable. Never green without a CI-reproduced proof.
- /v1/statusWhether each live dependency passed the external monitor's last check, and when. A check that misses its schedule reads stale, never up.
- POST /v1/firewall/checkStatic pre-sign check on top-level Solana transaction instructions. No RPC; prefer
lean-solana firewallto keep transactions local. - POST /mcpStateless Streamable HTTP MCP server with the registry, mint, program and transaction tools.
Registry
What the API serves today.
Core
Built and checked here
Ecosystem
Indexed from GitHub
Starter templates
Each command writes a project that builds
Attested programs
Submitted programs. CI means CI reproduced the build and the lean-solana prove run; self-attested means it has not