Solana Test Validator: Run Local Nodes & Deploy Programs — Forge College
Want to reproduce deterministic Solana tests locally and validate program behavior before automating deployments? Running a Solana Test Validator with snapshot-aware workflows gives you a repeatable, debuggable local cluster that mirrors real network semantics. What you'll learn You'll learn how to start the Solana Test Validator with deterministic flags and create a snapshot-aware run directory so state can be persisted and restored. You'll configure local keypairs and wallets that both solana-cli and Anchor can use for repeatable tests, build and deploy a compiled Anchor program using a scripted workflow, and run representative transactions (lamport transfers and simple program calls) to observe state changes and transaction logs. The lesson shows how to produce and restore snapshots, reset validator state to reproduce runs across machines, and how typical Hardhat test phases map to Anchor/local validator operations. By the end you'll have a single runnable shell script (local-test-run.sh) that boots the validator, deploys a program, and executes a smoke transaction. Who this is for Intermediate blockchain developers who already know basic solana-cli concepts and want hands-on migration patterns from EVM-style local testing to Solana's Anchor/testing flow. Prior experience with Hardhat or other local EVM workflows is helpful but not required. Key topics covered - Starting solana-test-validator with deterministic flags and snapshot directories - Creating and managing local keypairs, wallets, and lamport airdrops for tests - Building and deploying an Anchor program locally with a repeatable script - Running transactions, inspecting logs, and verifying on-chain state changes - Producing, restoring, and resetting validator snapshots for reproducible tests - Mapping common Hardhat test phases to Anchor and local validator operations Get the runnable scripts and continue learning at: https://www.forge.college/
Download
0 formatsNo download links available.