Tutorials

Hands-on guides for building on the Lattice SDK. From your first verifiable data store to multi-chain applications with trustless cross-chain transfers.

01

Your First Chain

Set up a complete Lattice node from scratch. Create a chain spec, start mining, submit transactions, and query state — all in under 50 lines of Swift.

~15 min · Beginner
02

Child Chains

Create a child chain anchored to your parent chain. Learn how merged mining inherits security and how parent blocks flow into child chain state.

~20 min · Intermediate
03

Cross-Chain Transfers

Move value between chains using Merkle proofs. Understand withdrawal actions, deposit receipts, and the cryptographic proof that makes it trustless.

~25 min · Intermediate
04

Encrypted State

Use Cashew's encrypted Merkle structures to store private data on-chain. Selective disclosure, encrypted queries, and proof generation over ciphertext.

~20 min · Advanced

Prerequisites

Fastest path
If you just want to see a chain running: lattice init my-chain && cd my-chain && swift run. These tutorials explain why each piece works.