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.
02Child 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.
03Cross-Chain Transfers
Move value between chains using Merkle proofs. Understand withdrawal actions, deposit receipts, and the cryptographic proof that makes it trustless.
04Encrypted State
Use Cashew's encrypted Merkle structures to store private data on-chain. Selective disclosure, encrypted queries, and proof generation over ciphertext.
Prerequisites
- Swift 6.0+ (macOS 15 or Linux)
- Basic familiarity with Swift
async/await - The lattice CLI installed (optional but recommended)
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.