glossary·2026-03-09·1 min read

Testnet / Devnet / Mainnet

Testnet / Devnet / Mainnet

Aleo runs three network environments:

  • Devnet - A local development network you spin up with leo run or snarkos. No real value, instant finality, perfect for iteration.
  • Testnet - A public shared network with test credits. Use it to verify deployment, test cross-program calls, and validate fee estimation before mainnet.
  • Mainnet - The production network where real credits are at stake and programs are immutable once deployed.

When configuring the SDK or CLI, specify the network explicitly. The default is often devnet, which will silently succeed even if your mainnet deployment would fail due to fee or state differences.