Quickstart
This guide will get you up and running with a local Agave test validator in minutes. You’ll install the Agave software, start a single-node test cluster, and verify it’s working correctly.What is a Test Validator?
Thesolana-test-validator is a full-featured, single-node cluster that runs on your local machine. It’s perfect for development because it provides:
- No RPC rate limits
- No airdrop limits
- Direct on-chain program deployment
- Configurable settings for testing different scenarios
The test validator is for development only. For production validators, see the validator setup guide.
Prerequisites
Before starting, ensure you have:- A supported operating system (Ubuntu, macOS, Fedora, or Windows)
- At least 8GB of RAM
- 10GB of free disk space
- Internet connection for downloading packages
Installation and Setup
Install Agave
Install the Agave release using the official installer:macOS & Linux:Windows (Command Prompt as Administrator):If prompted, update your PATH environment variable by copying and running the recommended command.
For other installation methods including building from source, see the Installation guide.
View test validator options
Before starting the validator, explore available configuration options:This shows all available flags and settings. Common options include:
--ledger- Specify ledger storage location--slots-per-epoch- Configure epoch length--limit-ledger-size- Control transaction history retention--bpf-program- Deploy programs at startup
Interacting with Your Test Validator
Once your test validator is running, open a new terminal to interact with it using the Solana CLI tools.Verify connection
Verify you’re connected to your local test validator by checking the genesis hash:The output should match the
Genesis Hash displayed by your running test validator.Create a wallet (if needed)
If you don’t have a wallet yet, create one:Follow the prompts to create a new keypair. You can add a passphrase for security or press Enter to skip.
Check your wallet balance
Check your wallet’s SOL balance:If this is a new wallet, you’ll see
0 SOL.Airdrop test SOL
Request test SOL from the local faucet:Verify the airdrop:You should now see:
On the local test validator, you can airdrop as much SOL as you need. There are no limits!
Understanding the Status Output
The test validator displays real-time status information:- 00:36:02 - Session running time
- Processed Slot - Latest slot processed by the validator
- Confirmed Slot - Latest slot at “confirmed” commitment level
- Finalized Slot - Latest slot at “finalized” commitment level
- Snapshot Slot - Slot height of the last snapshot
- Transactions - Total number of transactions processed
- ◎499.97… - Voting authority balance in SOL
Solana has three commitment levels: processed, confirmed, and finalized. Higher commitment levels provide stronger guarantees but take slightly longer.
Additional Commands
Monitor Program Logs
Watch real-time logs from on-chain programs:msg!() output from your programs here.
Run this command before executing transactions you want to monitor. It needs to be running when the transaction executes.
Check Validator Status
Get detailed information about the validator:View Transaction History
See recent transactions for an address:Stopping the Test Validator
When you’re done:- Switch to the terminal running the test validator
- Press
Ctrl+Cto stop it
test-ledger directory. To start fresh next time, delete this directory: