
Open-source Solana client written in Lean 4
Joined November 2026
- Tweets20
- Following1
- Followers806
- Likes12
Lean Client, our Solana validator written in Lean, has been voting on mainnet since Dec 1.
As of Dec 2, it now follows the full Alpenglow voting rules.
Its voting code also comes with machine-checked proofs: it can never cast conflicting votes, it votes in every slot on time, and peers can't flood it.
Lean checks the proofs on every push.
github.com/MidTermDev/lean-S…
Our validator has reached voting status!
Actual vote TX's should appear within a few hours as we clear our ~33k slot backlog post-update.
Watch live:
leanclient.app/#node
Lean Client update.
Our mainnet node now produces blocks, earns leader rewards, and executes transactions in parallel.
Wallets and RPCs can send transactions straight to the node over QUIC; mainnet gossip lists it as a TPU. Before a transaction goes into a block, the leader checks everything that would get the block rejected: parsing, signatures, repeats, whether the fee payer can pay, and the block's cost limits. Blocks fill highest fee first, using the same formula Agave uses, and go out over turbine in batches while the slot is still running. We rebuilt 134 mainnet blocks this way. All were valid, and every bank hash matched the footer.
Footers now carry reward certificates, which is how a leader gets paid half of what voters earn. We build them from real votes our node hears, about 112 validators per slot so far. Our checker also accepts every reward certificate Agave leaders put in 134 real mainnet footers.
Transactions now run on multiple cores. Each one starts as soon as the transactions it depends on finish, and the bank hash comes out identical to running them one at a time. Over 1,700 mainnet blocks on 8 workers, every bank hash matched, at 122ms a block versus about 180ms single threaded. That's 1.45x faster. The live node runs this way now.
Next is building on whichever parent the votes settle on, and moving more of each block onto the workers.
All Lean, compiled by our own compiler. leanclient.app
12% fewer CPU cycles per mainnet block.
Lean Client now compiles Solana programs lazily: each block of a program becomes machine code the first time it runs, and code that never runs is never compiled.
Live on our mainnet node, every bank hash matching the network.
Lean Verify.
Our lean-amm program has been formally verified on chain utilizing lean-verify.
We identified non-existent tooling for users wishing to verify lean program son-chain, so we built it/
Learn more: leanclient.app/verify
Program:
solscan.io/account/AMXwyCL9a…
Lean AMM is live on Solana mainnet.
An open-source AMM written in Lean, with its math formally proven: a swap can't drain a pool, and LP shares can't lose value to rounding.
0% platform fee. Every swap fee goes to LPs.
amm.leanclient.app
The best time to (re)write your Solana program(s) in Lean was yesterday. The second best time is today.
Write it in Lean, compile it to sBPF with lean-svm, then run it with leansol run: a Solana VM written in Lean.
github.com/MidTermDev/lean-S…






