For the complete documentation index, see llms.txt
Tutorials
Step-by-step tutorials for building DApps on Midnight Network. Start with the entry-level tutorials and work up to end-to-end deployments.
Private party
Read a contract that keeps guests private behind salted commitments until they pay an unshielded NIGHT entry fee, then run the party with MidnightJS tests on a local devnet.
Battleship
Read a contract written defensively, with a state machine, role checks and hash commitments that catch cheating, then prove each defense with MidnightJS tests on a local devnet.
Private tip jar
Take anonymous shielded tips into a contract-held pot that only the owner can withdraw, with two contracts wired from one MidnightJS test suite.
ZK Loan
Score credit privately: a contract that verifies a Schnorr-signed attestation inside the ZK proof and records only the loan outcome, the attestation API that signs it, and MidnightJS tests on a local devnet.
Leaderboard
Build a full-stack DApp with structured on-chain data, privacy controls via disclose(), Lace wallet integration, and production deployment.